code: public List<Descriptor> getDescriptors(SessionProvider sp, FolderDescriptor parentFolder) throws RepositoryException
     {
        LOG.info("Get child nodes to : " + parentFolder.getAsString());
  
        Session session = currentSession(sp);
  
        session.refresh(true);
  
        Node rootNode = (Node) session.getItem(rootNodePath);
        String strPath = parentFolder.getAsString();
  
        Node targetNode;
        if (strPath.equals("/"))
        {
           targetNode = rootNode;
        }
        else
        {
           targetNode = rootNode.getNode(strPath.substring(1));
        }
        LOG.info(targetNode.getPath());
        NodeType[] a = targetNode.getMixinNodeTypes();
        StringBuilder mixins = new StringBuilder();
        for (NodeType type : a)
        {
           mixins.append(type.getName()).append(" ");
        }
        LOG.info("**** Mixins : " + mixins.toString());
  
        LOG.info("**** Workspace : " + session.getWorkspace().getName());
  
        List<Descriptor> childNodes = new ArrayList<Descriptor>();
        for (NodeIterator iterator = targetNode.getNodes(); iterator.hasNext();)
        {
           // descriptor holds names of all child nodes than makes up artifact
           // coordinates.
           Node node = iterator.nextNode();
  
           if (node.isNodeType("nt:folder") || node.isNodeType("nt:file"))
           {
              Descriptor descriptor = new FolderDescriptor(node.getName());
              childNodes.add(descriptor);
           }
        }
  
        return (childNodes.size() == 0) ? null : childNodes;
     }
docs: /*
  (non-Javadoc)
  @see org.exoplatform.services.jcr.ext.maven.ArtifactManagingService#getDescriptors
  (org.exoplatform.services.jcr.ext.common.SessionProvider,
  org.exoplatform.services.jcr.ext.maven.FolderDescriptor)