Note that https://github.com/brooklyncentral/brooklyn/pull/1182 also does `((AbstractEntity)entity).setManagementContext(managementContext);` here.