docs: private void findAnnotatedSessionSynchMethods(BeanMetaData bmd) throws EJBConfigurationException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          boolean lookForAfterBegin = (bmd.ivAfterBegin == null);
          boolean lookForBeforeCompletion = (bmd.ivBeforeCompletion == null);
          boolean lookForAfterCompletion = (bmd.ivAfterCompletion == null);
  
          for (MethodMap.MethodInfo methodInfo : MethodMap.getAllDeclaredMethods(bmd.enterpriseBeanClass)) {
              Method method = methodInfo.getMethod();
              if (lookForAfterBegin &&
                  method.isAnnotationPresent(AfterBegin.class)) {
                  if (bmd.ivAfterBegin == null) {
                      if (isTraceOn && tc.isDebugEnabled())
                          Tr.debug(tc, "@AfterBegin = " + method);
                      method.setAccessible(true); // d666251
                      bmd.ivAfterBegin = method;
                  } else {
                      Tr.error(tc, "MULTIPLE_SESSION_SYNCH_METHODS_CNTR0326E",
                               new Object[] { "after-begin-method",
                                              bmd.j2eeName.getComponent(),
                                              bmd.ivAfterBegin, method });
                      throw new EJBConfigurationException("CNTR0326E: Multiple after-begin-method session synchronization" +
                                                          " methods have been configured for the " + bmd.j2eeName.getComponent() +
                                                          " bean. The configured session synchronization methods are : " +
                                                          bmd.ivAfterBegin + " and " + method);
                  }
              }
              if (lookForBeforeCompletion &&
                  method.isAnnotationPresent(BeforeCompletion.class)) {
                  if (bmd.ivBeforeCompletion == null) {
                      if (isTraceOn && tc.isDebugEnabled())
                          Tr.debug(tc, "@BeforeCompletion = " + method);
                      method.setAccessible(true); // d666251
                      bmd.ivBeforeCompletion = method;
                  } else {
                      Tr.error(tc, "MULTIPLE_SESSION_SYNCH_METHODS_CNTR0326E",
                               new Object[] { "before-completion-method",
                                              bmd.j2eeName.getComponent(),
                                              bmd.ivBeforeCompletion, method });
                      throw new EJBConfigurationException("CNTR0326E: Multiple before-completion-method session synchronization" +
                                                          " methods have been configured for the " + bmd.j2eeName.getComponent() +
                                                          " bean. The configured session synchronization methods are : " +
                                                          bmd.ivBeforeCompletion + " and " + method);
                  }
              }
              if (lookForAfterCompletion &&
                  method.isAnnotationPresent(AfterCompletion.class)) {
                  if (bmd.ivAfterCompletion == null) {
                      if (isTraceOn && tc.isDebugEnabled())
                          Tr.debug(tc, "@AfterCompletion = " + method);
                      method.setAccessible(true); // d666251
                      bmd.ivAfterCompletion = method;
                  } else {
                      Tr.error(tc, "MULTIPLE_SESSION_SYNCH_METHODS_CNTR0326E",
                               new Object[] { "after-completion-method",
                                              bmd.j2eeName.getComponent(),
                                              bmd.ivAfterCompletion, method });
                      throw new EJBConfigurationException("CNTR0326E: Multiple after-completion-method session synchronization" +
                                                          " methods have been configured for the " + bmd.j2eeName.getComponent() +
                                                          " bean. The configured session synchronization methods are : " +
                                                          bmd.ivAfterCompletion + " and " + method);
                  }
              }
          }
      }