ObjectMapper om = new ObjectMapper();
JsonNode requestJson = om.readValue(content, JsonNode.class);
RemoteDependencyDeclaration remoteDependency = RemoteDependencyDeclaration
.fromJson(requestJson);
String identifier = remoteDependency.getIdentifier();
// String providerUrl=requestJson.get("provider_url").asText();
// logger.info("provider:{}",providerUrl);
logger.info("provider:{}", remoteDependency.getProviderURL());
logger.info(
"requesting resolution of the identifier {} in the address {}",
identifier, remoteDependency.getProviderURL());
EndpointRegistration reg = distriman
.resolveDependencyLocalMachine(remoteDependency,
remoteDependency.getProviderURL());
String jsonString = toJson(reg);
logger.info("payload of the response {}", jsonString);