resource.configure(host.getName(), params);
hostResourcesMap.put(hostId, resource);
} catch (ConfigurationException e) {
logger.debug("Failed to load resource:" + e.toString());
}
HostEnvironment env = new HostEnvironment();
SetupCommand cmd = new SetupCommand(env);
cmd.setNeedSetup(true);
resource.executeRequest(cmd);
}