log.setCreateBy(credentials.getCurrentUser().getId());
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
getPayment().setId(null);
} else {
Payment category = getPayment();
setPayment((Payment) manager.getById(Payment.class, getPayment()
.getId()));
log = getPayment().getLogInformation();
try {
PropertyUtils.copyProperties(getPayment(), category);