@Override public ProcessingPeriod instantiate(PropertyLookup<ProcessingPeriod> lookup) { Long nullLong = null; ProcessingPeriod period = new ProcessingPeriod(); period.setName(lookup.valueOf(name, PERIOD_NAME)); period.setDescription(lookup.valueOf(description, PERIOD_DESC)); period.setStartDate(lookup.valueOf(startDate, START_DATE)); period.setEndDate(lookup.valueOf(endDate, END_DATE)); period.setNumberOfMonths(lookup.valueOf(numberOfMonths, NUMBER_OF_MONTHS)); period.setModifiedBy(lookup.valueOf(modifiedBy, MODIFIED_BY)); period.setScheduleId(lookup.valueOf(scheduleId, SCHEDULE_ID)); period.setId(lookup.valueOf(id, nullLong)); return period; }