minute = details.getString("minute");
}
if (details.has("second")) {
second = details.getString("second");
}
FormValidation timeValidation = checks.doCheckTimeValue(hour, minute, second);
if (!timeValidation.equals(FormValidation.ok())) {
throw new Descriptor.FormException("Wrong time format: " + timeValidation.getMessage(), "");
}
cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(hour));
cal.set(Calendar.MINUTE, Integer.parseInt(minute));