{
List<Property> addressTokens = node.get(ADDRESS).asPropertyList();
ModelNode value = node.get(RESULT).asObject();
WebServiceEndpoint endpoint = factory.webServiceEndpoint().as();
endpoint.setName(value.get("name").asString());
endpoint.setClassName(value.get("class").asString());
endpoint.setContext(value.get("context").asString());
endpoint.setType(value.get("type").asString());
endpoint.setWsdl(value.get("wsdl-url").asString());
endpoint.setDeployment(addressTokens.get(0).getValue().asString());
endpoint.setRequestCount(value.get("request-count").asInt(0));
endpoint.setResponseCount(value.get("response-count").asInt(0));
endpoint.setFaultCount(value.get("fault-count").asInt(0));
endpoint.setMinProcessingTime(value.get("min-processing-time").asInt(0));
endpoint.setAverageProcessingTime(value.get("average-processing-time").asInt(0));
endpoint.setMaxProcessingTime(value.get("max-processing-time").asInt(0));
endpoint.setTotalProcessingTime(value.get("total-processing-time").asInt(0));
endpoints.add(endpoint);
}
}
}