@Override
    public void scan(UploadedFile file) {
        try {
            URLConnection connection = openConnection(file);
            try (InputStream response = connection.getInputStream()) {
                JSONObject json = new JSONObject(IOUtils.toString(response, StandardCharsets.UTF_8));
                handleBodyResponse(file, json);
            }
        }
        catch (JSONException | IOException ex) {
            if (LOGGER.isLoggable(Level.WARNING)) {
                LOGGER.log(Level.WARNING, "Cannot perform virus scan", ex);
            }
            throw new FacesException("Cannot perform virus scan", ex);
        }
    }
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