code: public NodeRepresentation createNodeRepresentation(Node node, String mediaTypeHint)
     {
  
        try
        {
  
           NodeRepresentation content =
              nodeRepresentationService.getNodeRepresentation(node.getNode("jcr:content"), mediaTypeHint);
  
           // return nodeRepresentationService.getNodeRepresentation(node.getNode("jcr:content"),
           // mediaTypeHint);
           return new NtFileNodeRepresentation(node, content);
  
        }
        catch (RepositoryException e)
        {
           LOG.error(e.getLocalizedMessage(), e);
        }
        return null;
     }
docs: /*
  (non-Javadoc)
  @see
  org.exoplatform.services.jcr.ext.resource.NodeRepresentationFactory#createNodeRepresentation(
  javax.jcr.Node, java.lang.String)