protected void handleBodyResponse(UploadedFile file, JSONObject json) {
        int responseCode = json.getInt("response_code");
        if (LOGGER.isLoggable(Level.FINE)) {
            LOGGER.fine(String.format("Retrieved response code %d.", responseCode));
        }

        if (responseCode == 1) {
            // present
            int positives = json.getInt("positives");
            if (LOGGER.isLoggable(Level.FINE)) {
                LOGGER.fine(String.format("Retrieved %d positives.", positives));
            }
            if (positives > 0) {
                String message = createErrorMessage(file, json);
                throw new VirusException(message);
            }
        }
    }
Scan file using "/file/report" endpoint
@throws VirusException if a virus has been detected by the scanner
primefaces/src/main/java/org/primefaces/virusscan/impl/VirusTotalReportScanner.java