super.setStateDate(yearMonthDay.toDateTimeAtMidnight());
}
public static RegistrationState createRegistrationState(Registration registration, Person responsible, DateTime creation,
RegistrationStateType stateType) {
RegistrationStateBean bean = new RegistrationStateBean(registration);
bean.setResponsible(responsible);
bean.setStateDateTime(creation);
bean.setStateType(stateType);
return createRegistrationState(bean);
}