InitialContext ic = CVUtility.getInitialContext();
IndividualLocalHome home = (IndividualLocalHome)ic.lookup("local/Individual");
IndividualLocal remote;
try
{
remote = home.findByPrimaryKey(new IndividualPK(this.owner, dataSource));
this.setOwnerVO(remote.getIndividualVOBasic());
} catch (FinderException e) {
logger.debug("[fillAuditDetails] FinderException finding owner ID: "+this.owner);
} catch (Exception e) {
logger.error("[fillAuditDetails] Exception thrown.", e);
}
try
{
remote = home.findByPrimaryKey(new IndividualPK(this.createdBy, dataSource));
this.setCreatedByVO(remote.getIndividualVOBasic());
} catch (FinderException e) {
logger.debug("[fillAuditDetails] FinderException finding creator ID: "+this.createdBy);
} catch (Exception e) {
logger.error("[fillAuditDetails] Exception thrown.", e);
}
try
{
remote = home.findByPrimaryKey(new IndividualPK(this.modifiedBy, dataSource));
this.setModifiedByVO(remote.getIndividualVOBasic());
} catch (FinderException e) {
logger.debug("[fillAuditDetails] FinderException finding ModifiedBy ID: "+this.modifiedBy);
} catch (Exception e) {
logger.error("[fillAuditDetails] Exception thrown.", e);