if (readResource.getOperations().isEmpty())
{
Map<String, ManagedDescription> descriptions = root.getOperationDescriptions(address);
for (Map.Entry<String, ManagedDescription> desc : descriptions.entrySet())
{
readResource.addOperation(new NamedDescription(desc.getKey(), desc.getValue().getDescription()));
}
}
}
return new SuccessfulResponse<Object>(bindingProvider, result, request.getContentType());