code: @Override
     public String getContentType()
     {
        try
        {
           if (!connected)
           {
              connect();
           }
  
           return nodeRepresentation.getMediaType();
        }
        catch (IOException e)
        {
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
        catch (RepositoryException e)
        {
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
        return null;
     }
docs: /*
  (non-Javadoc)
  @see java.net.URLConnection#getContentType()