code: @Override
     public InputStream getInputStream() throws IOException
     {
        if (!connected)
           connect();
  
        try
        {
           return nodeRepresentation.getInputStream();
        }
        catch (IOException e)
        {
           //e.printStackTrace();
           throw new IOException("can't get input stream", e);
        }
        catch (RepositoryException e)
        {
           //e.printStackTrace();
           throw new IOException("can't get input stream", e);
        }
     }
docs: /*
  (non-Javadoc)
  @see java.net.URLConnection#getInputStream()