code: public Collection<UserProfile> findUserProfiles() throws Exception
     {
        List<UserProfile> profiles = new ArrayList<UserProfile>();
  
        Session session = service.getStorageSession();
        try
        {
           NodeIterator userNodes = utils.getUsersStorageNode(session).getNodes();
           while (userNodes.hasNext())
           {
              Node userNode = userNodes.nextNode();
  
              String userName = userNode.getName();
  
              Node profileNode;
              try
              {
                 profileNode = userNode.getNode(JCROrganizationServiceImpl.JOS_PROFILE);
              }
              catch (PathNotFoundException e)
              {
                 continue;
              }
  
              UserProfile profile = readProfile(userName, profileNode);
              if (profile != null)
              {
                 profiles.add(profile);
              }
           }
        }
        finally
        {
           session.logout();
        }
  
        return profiles;
     }
docs: {@inheritDoc}