public LdapUserAndGroupConfigurationDTO getResourceFromResponse(Response response)
      throws IOException {
    String responseString = response.getEntity().getText();
    LOG.debug(" getResourceFromResponse: " + responseString);

    XStreamRepresentation representation =
        new XStreamRepresentation(xstream, responseString, mediaType);
    LdapUserAndGroupConfigurationResponse resourceResponse =
        (LdapUserAndGroupConfigurationResponse)
            representation.getPayload(new LdapUserAndGroupConfigurationResponse());

    return resourceResponse.getData();
  }