public object GetPermission(Path path) { Acl acl = path.attributes().getAcl(); if (!Acl.EMPTY.equals(acl)) { StringBuilder s = new StringBuilder(); Iterator iterator = acl.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry)iterator.next(); s.Append(String.Format("{0}{1}:{2}", s.Length == 0 ? "" : ", ", ((Acl.User)entry.getKey()).getDisplayName(), entry.getValue())); } return(s.ToString()); } Permission permission = path.attributes().getPermission(); return(permission.toString()); }