code: public static final void chkBMTFromAnnotations(Method[] beanMethods, J2EEName j2eeName)
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "chkBMTFromAnnotations");
  
          javax.ejb.TransactionAttribute methTranAttr = null;
  
          for (int i = 0; i < beanMethods.length; i++)
          {
              // Unless a Remove method is added the last index in the beanMethods
              // array will be null causing an NPE.   So we need to check for
              // null first.
              if (beanMethods[i] != null) {
  
                  methTranAttr = beanMethods[i].getAnnotation(javax.ejb.TransactionAttribute.class);
                  if (methTranAttr == null)
                  {
                      methTranAttr = beanMethods[i].getDeclaringClass().getAnnotation(javax.ejb.TransactionAttribute.class);
                  }
                  // If a Transaction attribute exists then create a warning message.
                  if (methTranAttr != null)
                  {
                      Tr.warning(tc, "BMT_DEFINES_CMT_ATTRIBUTES_CNTR0067W", new Object[] { j2eeName });
                  }
              }
  
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "chkBMTFromAnnotations");
  
          return;
      }
docs: d395828