code: public Object loadServiceCapabilities(String serviceUrl) throws IOException {
  		HttpGet request = new HttpGet(serviceUrl);
  		request.setHeader(
  				new BasicHeader(HttpHeaders.ACCEPT, ACCEPT_SERVICE_CAPABILITIES));
  		CloseableHttpResponse httpResponse = execute(request, serviceUrl,
  				"retrieve help");
  		validateResponse(httpResponse, serviceUrl);
  		HttpEntity httpEntity = httpResponse.getEntity();
  		ContentType contentType = ContentType.getOrDefault(httpEntity);
  		if (contentType.getMimeType().equals("text/plain")) {
  			return getContent(httpEntity);
  		}
  		return parseJsonMetadata(httpEntity);
  	}
docs: Loads the service capabilities of the service at the specified URL. If the service
  supports generating a textual representation of the capabilities, it is returned,
  otherwise {@link InitializrServiceMetadata} is returned.
  @param serviceUrl to url of the initializer service
  @return the service capabilities (as a String) or the
  {@link InitializrServiceMetadata} describing the service
  @throws IOException if the service capabilities cannot be loaded