class NessusAdapterV1 extends AbstractAdapter<NessusAdapterContext, NessusAdapterConfig> implements NessusAdapter {

	String resolveHistoryIdByUUID(String content, NessusAdapterContext context) throws AdapterException {
		String uuid = context.getProductContextId();
		if (uuid == null) {
			throw new IllegalStateException("No nessus uuid available!");
		}
		return context.json().fetch("history", content)
				.fetchArrayElementHaving("history_id", Collections.singletonMap("uuid", uuid)).asText();
	}

}