A developer has acquired a commercial building in downtown Westfield with approvals in place to add two stories with 10 apartments atop the existing structure.