code: static void checkJAXPAvailability() {
          try {
              XmlConfigurator.class.getName();
          }
          catch (NoClassDefFoundError error) {
              Error tmp=new NoClassDefFoundError(JAXP_MISSING_ERROR_MSG);
              tmp.initCause(error);
              throw tmp;
          }
      }
docs: Checks the availability of the JAXP classes on the classpath.
  @throws NoClassDefFoundError if the required JAXP classes are not availabile on the classpath.