try {
deployerClass = bundleContext.getBundle().loadClass(deployerConfig.getClassStr());
} catch (ClassNotFoundException e) {
deployerClass = Class.forName(deployerConfig.getClassStr());
}
Deployer deployer = (Deployer) deployerClass.newInstance();
String directory = deployerConfig.getDirectory();
String extension = deployerConfig.getExtension();
deployer.setDirectory(directory);
deployer.setExtension(extension);
Dictionary propsMap = new Hashtable(2);
propsMap.put(DeploymentConstants.DIRECTORY, directory);
propsMap.put(DeploymentConstants.EXTENSION, extension);
propsMap.put(CarbonConstants.AXIS2_CONFIG_SERVICE, Deployer.class.getName());