if (entityResolver != null) { try { InputSource input = entityResolver.resolveEntity(null, uri); if (input != null) return input.getByteStream(); } catch (SAXException e) { XMLStreamException e2 = new XMLStreamException(e.getMessage()); e2.initCause(e); throw e2; } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e.getMessage()); e2.initCause(e); throw e2; } } return null;
return resolve(null, uri);
  public InputStream resolve(String uri)    throws XMLStreamException  {    if (entityResolver != null)      {        try          {            InputSource input = entityResolver.resolveEntity(null, uri);            if (input != null)              return input.getByteStream();          }        catch (SAXException e)          {            XMLStreamException e2 = new XMLStreamException(e.getMessage());            e2.initCause(e);            throw e2;          }        catch (IOException e)          {            XMLStreamException e2 = new XMLStreamException(e.getMessage());            e2.initCause(e);            throw e2;          }      }    return null;  }