String attribute = element.getAttribute("descriptorClass"); //$NON-NLS-1$
Class< ? > c = descriptor.getClass().getClassLoader().loadClass(attribute);
if (c.isAssignableFrom(descriptor.getClass())) {
TemporaryResourceFactory fac = (TemporaryResourceFactory) element
.createExecutableExtension("factory"); //$NON-NLS-1$
return fac.createResource(descriptor);
}
} catch (ClassNotFoundException e) {
// thats fine. Lets allow tracing to get this.
CatalogPlugin.trace("Trying to match classes", e); //$NON-NLS-1$
} catch (Exception e) {