code: protected Source convertString2Source(String param) {
          Source src;
          try {
              src = uriResolver.resolve(param, null);
          } catch (TransformerException e) {
              src = null;
          }
          if (src == null) {
              src = new StreamSource(new File(param));
          }
          return src;
      }
docs: Converts a String parameter to a JAXP Source object.
  @param param a String parameter
  @return Source the generated Source object