An apartment and retail building in Somerset County has changed hands for more than $4.1 million, in a newly announced deal by Deluccia Commercial Group.