code: public static WstxInputSource sourceFromString(WstxInputSource parent, ReaderConfig cfg, 
                                                      String refName, int xmlVersion,
                                                     String refContent)
          throws IOException, XMLStreamException
      {
          /* Last null -> no app-provided encoding (doesn't matter for non-
           * main-level handling)
           */
          return sourceFromR(parent, cfg, refName, xmlVersion,
          		new StringReader(refContent), null, refName);
      }
docs: We have multiple ways to look at what would it mean to get a String
  as the resolved result. The most straight-forward is to consider
  it literal replacement (with possible embedded entities), so let's
  use that (alternative would be to consider it to be a reference
  like URL -- those need to be returned as appropriate objects
  instead).
  <p>
  Note: public to give access for unit tests that need it...