* @param additionalResourceSuffixes
* a list of additional suffixes for resources
* @return a Map of process definitions
*/
public static Map<String, byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) {
ProcessApplicationScanner scanner = null;
try {
// check if we must use JBoss VFS
classLoader.loadClass("org.jboss.vfs.VFS");
scanner = new VfsProcessApplicationScanner();
} catch (Throwable t) {
scanner = new ClassPathProcessApplicationScanner();
}
return scanner.findResources(classLoader, paResourceRootPath, metaFileUrl, additionalResourceSuffixes);
}