log.warn("Requesting paths for a non-existent Resource [ {} ]; returning empty results.", path);
return paths;
}
final Node node = resource.adaptTo(Node.class);
final ResourceCollection resourceCollection =
ResourceCollectionUtil.getResourceCollection(node, resourceCollectionManager);
if (resourceCollection != null) {
final List<Node> members = resourceCollection.list(workflowPackageTypes);
for (final Node member : members) {
paths.add(member.getPath());
}
} else {
// Is not a workflow package; return a List of the provided payload path