xmlDriver.loadMapping(org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor.class);
xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.LinkDescriptor.class);
xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.SymbolDescriptor.class);
xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.Skin.class);
ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
String resourcePattern = CockpitConstants.SKIN + "/*.xml";
Resource[] resources = null;
try
{
resources = resMgr.findResources(resourcePattern);
}
catch (ResourceMgrException e)
{
throw new ModelException("MissingItemTypeDescriptors", "No item type files found matching '" + resourcePattern + "'.");
}