code: public HierarchicalProperty getProperty(String name) throws RepositoryException
     {
  
        for (HierarchicalProperty p : properties)
        {
           if (p.getStringName().equals(name))
              return p;
        }
        return null;
  
        // if ("jcr:primaryType".equals(name) || "jcr:mixinTypes".equals(name) ||
        // "jcr:data".equals(name)
        // || "jcr:uuid".equals(name))
        // return null;
        //
        // String value;
        // try {
        // value = node.getProperty(name).getString();
        // } catch (PathNotFoundException e) {
        // return null;
        // }
        // String ns = ((ExtendedSession) node.getSession()).getLocationFactory()
        // .parseJCRName(name)
        // .getNamespace();
        // return new HierarchicalProperty(name, value, ns);
  
     }
docs: /*
  (non-Javadoc)
  @see org.exoplatform.services.jcr.ext.resource.NodeRepresentation#getProperty(java.lang.String)