code: @Override
    public InputSource resolveEntity(String publicId, String systemId)
    {
      String r = map.get(publicId);
      return r == null ? null : new InputSource(Resources.stream(r));
    }
docs: Get input source for entity definition file identified by public and system ID.