code: public static void setInput(Input input, InputSource inputSource) {
      input.setByteStream(inputSource.getByteStream());
      input.setCharacterStream(inputSource.getCharacterStream());
      input.setUri(inputSource.getSystemId());
      input.setEncoding(inputSource.getEncoding());
    }
docs: public because needed by transform package