for (ModelNode node : nodes)
{
if (ModelAdapter.wasSuccess(node))
{
ModelNode endpointNode = node.get(RESULT);
DeployedEndpoint endpoint = deployedEndpointEntityAdapter.fromDMR(endpointNode);
endpoint.setType(webserviceEndpoint);
endpoint.setSubsystem(subsystem);
endpoint.setAddress(addressFor(subsystem.getAddress(), "endpoint",
node.get(ADDRESS).asList().get(2).get("endpoint").asString()));
endpoints.add(endpoint);
}
}
}