ResourceFactoryManager resourceFactoryManager = PluginContainer.getInstance().getResourceFactoryManager();
CreateResourceRequest request = new CreateResourceRequest(0, AppServerUtils.getASResource().getId(),
getDestinationName(), getResourceTypeName(), getPluginName(), new Configuration(),
getTestResourceConfiguration(), null);
//resourceFactoryManager.createResource(request);
CreateResourceResponse response = resourceFactoryManager.executeCreateResourceImmediately(request);
response.getErrorMessage();
System.out.println("creating response message: " + response.getErrorMessage());
// Enable Destination Statistics using JMX
System.out.println("Enable Destination Statistics..");
Resource asResource = AppServerUtils.getASResource();
ApplicationServerComponent asResourceComponenet = (ApplicationServerComponent) PluginContainer.getInstance()