log.setCreateBy(credentials.getCurrentUser().getId());
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
getExamination().setId(null);
} else {
Examination category = getExamination();
setExamination((Examination) manager.getById(Examination.class,
getExamination().getId()));
log = getExamination().getLogInformation();
getExamination().setStartDate(category.getStartDate());
getExamination().setEndDate(category.getEndDate());
try {
PropertyUtils.copyProperties(getExamination(), category);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {