code: @Override
      protected EntityDecl findEntity(String id, Object arg)
          throws XMLStreamException
      {
          EntityDecl ed = mConfig.findCustomInternalEntity(id);
          if (ed == null && mGeneralEntities != null) {
              ed = mGeneralEntities.get(id);
          }
          /* 05-Mar-2006, TSa: Externally declared entities are illegal
           *   if we were declared as "standalone='yes'"...
           */
          if (mDocStandalone == DOC_STANDALONE_YES) {
              if (ed != null && ed.wasDeclaredExternally()) {
                  throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
              }
          }
          return ed;
      }
docs: /*
  /////////////////////////////////////////////////////////////////////
  Abstract method implementations
  /////////////////////////////////////////////////////////////////////