public String execute(){
UnitOfMeasure uom;
if(getUnitOfMeasure().getId() != null || !"".equalsIgnoreCase(getUnitOfMeasure().getId())){
uom = new UnitOfMeasure();
logInfo = new LogInformation();
logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
} else {
uom = (UnitOfMeasure) manager.getById(UnitOfMeasure.class, getUnitOfMeasure().getId());
logInfo = new LogInformation();
}
logInfo.setActiveFlag(getActive());
logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));