SystemInfo systemInfo = SystemInfoFactory.createSystemInfo();
File temporaryDirectory = temp;
File dataDirectory = temp;
String pluginContainerName = "rhq";
EventContext eventContext = new EventContextImpl(resource, eventManager);
OperationContext operationContext = new OperationContextImpl(0);
ContentContext contentContext = new ContentContextImpl(0);
PluginContainerDeployment pluginContainerDeployment = null;
AvailabilityContext availContext = new AvailabilityContextImpl(resource, pluginContainer.getInventoryManager());
InventoryContext inventoryContext = new InventoryContextImpl(resource, pluginContainer.getInventoryManager());
ResourceContext context = new ResourceContext(resource, parentResourceComponent, parentResourceContext,