{
// Using ResourceLocal transaction so allocate a transaction
tx = new JPAEntityTransaction(om);
}
CallbackHandler beanValidator = BeanValidatorHandlerFactory.newInstance(om);
if (beanValidator != null)
{
om.getCallbackHandler().addListener(beanValidator, null);
}