ResourceContainer resourceContainer = im.getResourceContainer(resourceId);
if (resourceContainer != null) {
Resource resource = resourceContainer.getResource();
PluginContainerConfiguration pcc = agentConfig.getPluginContainerConfiguration();
RuntimeDiscoveryExecutor scanner = new RuntimeDiscoveryExecutor(im, pcc, resource);
InventoryReport report = scanner.call();
out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_RESOURCE_SERVICES, resource.getName()));
printInventoryReport(report, out, verbose);
} else {
out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_RESOURCE_ID_INVALID, resourceId));
}