GPathResult resources = (GPathResult) descriptor.getProperty("resources");
if (!resources.isEmpty()) {
GPathResult allResources = (GPathResult) resources.getProperty("resource");
if (!allResources.isEmpty()) {
final ClassLoader classLoader = application.getClassLoader();
for (Iterator i = allResources.nodeIterator(); i.hasNext();) {
final String className = ((Node)i.next()).text();
try {
artefacts.add(classLoader.loadClass(className));
} catch (ClassNotFoundException e) {
LOG.error("Class not found loading plugin resource [" + className + "]. Resource skipped.", e);