provider = aClass1.newInstance();
//loading the provider properties
aClass = GFacConfiguration.getProviderConfig(GFacConfiguration.getHandlerDoc(), Constants.XPATH_EXPR_PROVIDER_HANDLERS_START +
providerClassName + "']", Constants.GFAC_CONFIG_APPLICATION_NAME_ATTRIBUTE);
if(!aClass.isEmpty()){
provider.initProperties(aClass.get(0).getProperties());
}
}
} catch (XPathExpressionException e) {
log.error("Error evaluating XPath expression"); //To change body of catch statement use File | Settings | File Templates.
throw new GFacException("Error evaluating XPath expression", e);