code: private void loadMoreScoped(WstxInputSource currScope,
                                  String entityName, Location loc)
          throws XMLStreamException
      {
          boolean check = (mInput == currScope);
          loadMore(getErrorMsg());
          // Did we get out of the scope?
          if (check && (mInput != currScope)) {
              _reportWFCViolation("Unterminated entity value for entity '"
                                  +entityName+"' (definition started at "
                                  +loc+")");
          }
      }
docs: /*
  /////////////////////////////////////////////////////////
  Internal methods, input access:
  /////////////////////////////////////////////////////////