final ClassLoader cl) {
final Config config = YamlReader.load(is).expand();
final ArrayNode agents = (ArrayNode) config.get("agents");
for (final JsonNode agent : agents) {
final AgentConfig agentConfig = new AgentConfig((ObjectNode) agent);
final Agent newAgent = new AgentBuilder().withWakeService(ws)
.withClassLoader(cl).with(agentConfig).build();
LOG.info("Created agent:" + newAgent.getId());
}
}