String parentPath;
try {
parentPath = FileUtil.getFile(System.getProperty("ofbiz.home")).getCanonicalFile().toString().replaceAll("\\\\", "/");
} catch (MalformedURLException e) {
throw new ComponentException(e.getMessage(), e);
} catch (IOException e) {
throw new ComponentException(e.getMessage(), e);
}
// load each component
if (components != null) {
for (ComponentLoaderConfig.ComponentDef def: components) {
this.loadComponentFromConfig(parentPath, def);