throw new RegistryException(msg);
}
Collection collection = (Collection) resource;
String[] childPaths = collection.getChildren();
CollectionContentBean bean = new CollectionContentBean();
bean.setChildPaths(childPaths);
bean.setChildCount(childPaths.length);
bean.setCollectionTypes(getCollectionTypes());
if (registry.getRegistryContext() != null) {
List remoteInstances = registry.getRegistryContext().
getRemoteInstances();
String[] instances = new String[remoteInstances.size()];
for(int i=0; i<instances.length; i++) {
instances[i] = ((RemoteConfiguration)remoteInstances.get(i)).getId();
}
bean.setRemoteInstances(instances);
}
ResourcePath resourcePath = new ResourcePath(path);
bean.setPathWithVersion(resourcePath.getPathWithVersion());
bean.setVersionView(!resourcePath.isCurrentVersion());
return bean;
} catch (Exception e) {
String msg = "Failed to get content details of the resource " + path +