code: public static InputSource getResourceAsSAXInputSource(Class<?> requestingClass, String resource)
              throws ResourceMissingException, IOException {
          URL url = getResourceAsURL(requestingClass, resource);
          InputSource source = new InputSource(url.openStream());
          source.setPublicId(url.toExternalForm());
          return source;
      }
docs: Returns the requested resource as a SAX input source.
  
  @param requestingClass the java.lang.Class object of the class that is attempting to load the
  resource
  @param resource a String describing the full or partial URL of the resource to load
  @return the requested resource as a SAX input source
  @throws ResourceMissingException
  @throws java.io.IOException