log.setCreateBy(sessionCredentials.getCurrentUser().getId());
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
getSubject().setId(null);
} else {
Subject category = getSubject();
setSubject((Subject) manager.getById(Subject.class, getSubject()
.getId()));
log = getSubject().getLogInformation();
try {
PropertyUtils.copyProperties(getSubject(), category);