docs: private static void logErrors(J2EEName j2eeName,
                                    List<String> errors)
                      throws EJBConfigurationException
      {
          if (errors.size() > 0)
          {
              String heading = "Merged EJB DD Validation results for " + j2eeName;
  
              // Log to SystemOut.log only if the property is enabled.      d680497.1
              if (ValidateMergedXML)
              {
                  System.out.println(heading);
                  for (String error : errors) {
                      System.out.println(error);
                  }
              }
              else if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              {
                  Tr.debug(tc, heading);
                  for (String error : errors) {
                      Tr.debug(tc, error);
                  }
              }
  
              // Errors will be in Systemout.log if this property is enabled
              if (ValidateMergedXMLFail)
              {
                  throw new EJBConfigurationException("Merged EJB DD for " + j2eeName +
                                                      " is not correct. See SystemOut.log for details.");
              }
          }
      }