Small Refactoring: Merge GenericRestClient.HttpResponse.toDocNode into GenericRestClient.HttpResponse.getBodyAsDocNode
Both methods do the same, so we should only have one. getBodyAsDocNode
should be preferred, as the name is more fitting - it actually only converts the body and nothing else of the reponse