public class ScheduleBlockSpecification extends AbstractCompositeViewSpecification{
private static final Logger LOG = LoggerFactory.getLogger(ScheduleBlockView.class);
public View createView(Content content, ViewAxis axis) {
ObjectSpecification nc = ((ObjectContent) content).getObject().getSpecification();
ObjectField[] flds = nc.getFields();
ObjectField timePeriodField = null;
ObjectField colorField = null;
for (int i = 0; i < flds.length; i++) {
ObjectField field = flds[i];
if(field.getType().isOfType(Isis.getSpecificationLoader().loadSpecification(TimePeriod.class))) {