anchor.diff:  	if (properties != null) {
   		Session session = currentNode.getSession();
   		AccessControlManager acm = currentNode.getSession().getAccessControlManager();
  -		out.println(acm.getPrivileges(currentNode.getPath()));
  +		/*
  +		Privilege[] privileges = acm.getPrivileges(currentNode.getPath());
  +		
  +		for (int i=0;i<privileges.length;i++) {
  +			out.println(privileges[i].getName());
  +		}
  +		*/
   		while (properties.hasNext()) {
   			Property p = properties.nextProperty();
  +			PropertyDefinition propertyDefinition = p.getDefinition();
   			String name = p.getName();
   			String value = null;
  -			boolean readonly = false;
   			
  -			String readonlyClass = readonly ? "class=readonly" : "";
  +			String readonlyClass = propertyDefinition.isProtected() ? "class=readonly" : "";
   			if (p.isMultiple()) {
   				Value v[] = p.getValues();
   				String[] values =  new String[v.length];
   				for (int i = 0; i < v.length; i++) {
   					values[i] = v[i].getString();
   				}
  -				
   				value = StringUtils.join(values, ", ");
   				
   			} else {
  
positive.code: <%@page import="javax.jcr.security.AccessControlManager"%>
  <%@page import="org.apache.commons.lang.StringUtils"%>
  <%@page import="java.util.List"%>
  
negative.code:  }
   
   .readonly {
   	opacity:0.6;
   }
   
   </style>
  