Build metadata map on controller before creating collection