code: public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
          EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
          return parameter.getAnnotation(Observes.class).during();
      }
docs: Tests an observer method to see if it is transactional.
  
  @param observer The observer method
  @return true if the observer method is annotated as transactional