// <h2>GET /message</h2>
if (isEndpointHTTP(child.getNodeName())) {
// start of a new endpoint
currentEndpoint = new ResourceDefinition();
definition.addEndpoint(currentEndpoint);
LOGGER.info("Found endpoint: {}", currentEndpoint.getName());
final String[] http = child.getTextContent().split(" ");
currentEndpoint.setUrl(http[1]);