static final long LONG_MILLISECOND = 1000000L;
static final long LONG_RUNNING_THRESHOLD = 300L * LONG_MILLISECOND;
public Object execute(InvocationContext context) throws Exception
{
Transactional transactionalAnnotation = context.getMethod().getAnnotation(Transactional.class);
if (transactionalAnnotation == null)
{
transactionalAnnotation = context.getTarget().getClass().getAnnotation(Transactional.class);
}
Class<? extends Annotation> qualifierClass = Default.class;
if (transactionalAnnotation != null)
{
qualifierClass = transactionalAnnotation.qualifier();
}
Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, new AnyLiteral());
if (entityManagerBeans == null)
{