A grocery-anchored retail center in Monmouth County has changed hands for more than $40 million, following a sale arranged by brokers with HFF.