Set<String> propNamesList = new HashSet<String>();
Set<Property> properties = new HashSet<Property>();
//
CollectionImpl coll = null;
try {
if (registrySession.getUserRegistry().get(nodePath) instanceof CollectionImpl) {
coll = (CollectionImpl) registrySession.getUserRegistry().get(nodePath);
String[] childPaths = coll.getChildren();
for (int i = 0; i < childPaths.length; i++) {
Resource res = registrySession.getUserRegistry().get(childPaths[i]);
if ((res instanceof ResourceImpl) && (res.getProperty("registry.jcr.property.type") != null)) {
String[] temp = childPaths[i].split("/");
propNamesList.add(temp[temp.length - 1]);
}
}
Properties propyList = coll.getProperties();
Enumeration en = propyList.propertyNames();
while (en.hasMoreElements()) {
String pName = en.nextElement().toString();
if ((pName != null) && (!isImplicitProperty(pName))) {
propNamesList.add(pName);