if (source != null) {
tmp = HibernateHelper.initializeAndUnproxy(source);
}
if (tmp instanceof ServiceEntity) {
Service service = new Service();
service.setId(tmp.getId());
service.setDescription(((ServiceEntity) tmp).getDescription());
service.setElapsedTime(tmp.getElapsedTime());
service.setNote(tmp.getNote());
service.setTotal(tmp.getTotal());
result = service;
}
if (tmp instanceof DetailReplacementEntity) {