class NetsparkerAdapterV1 extends AbstractAdapter<NetsparkerAdapterContext, NetsparkerAdapterConfig> implements NetsparkerAdapter {

	void fetchReport(NetsparkerAdapterContext context) {
		String traceID = context.getConfig().getTraceID();
		LOG.debug("{} try to fetch report", context.getConfig().getTraceID());

		String apiUrl = createAPIURL(
				APICALL_GET_SCAN_REPORT + context.getProductContextId() + "?Type=Vulnerabilities&Format=Xml",
				context.getConfig());
		ResponseEntity<String> response = context.getRestOperations().getForEntity(apiUrl, String.class);
		if (!OK.equals(response.getStatusCode())) {
			throw new NetsparkerRESTFailureException(response.getStatusCode(), response.getBody());
		}
		String body = response.getBody();
		context.setResult(body);
		LOG.debug("{} calling fetch report with '{}'", traceID, apiUrl);
	}

}