code: public Collection<HierarchicalProperty> getProperties(String name) throws RepositoryException
     {
  
        ArrayList<HierarchicalProperty> props = new ArrayList<HierarchicalProperty>();
        if ("jcr:primaryType".equals(name) || "jcr:mixinTypes".equals(name))
           return null;
  
        if (content != null && content.getProperty(name) != null)
        {
           props.addAll(content.getProperties(name));
        }
  
        try
        {
           String ns = ((ExtendedSession)node.getSession()).getLocationFactory().parseJCRName(name).getNamespace();
           Property p = node.getProperty(name);
           if (p.getDefinition().isMultiple())
           {
              Value[] v = p.getValues();
              for (int i = 0; i < v.length; i++)
              {
                 props.add(new HierarchicalProperty(name, v[i].getString(), ns));
              }
           }
           else
           {
              props.add(new HierarchicalProperty(name, p.getString(), ns));
           }
  
           //      PropertyIterator iter = node.getProperties(name);
           //      while (iter.hasNext()) {
           //        Property prop = iter.nextProperty();
           //        props.add(new HierarchicalProperty(name, prop.getString(), ns));
           //      }
        }
        catch (PathNotFoundException e)
        {
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
        return props;
     }
docs: /*
  (non-Javadoc)
  @see
  org.exoplatform.services.jcr.ext.resource.NodeRepresentation#getProperties(java.lang.String)