class VulnerabilityManagementUploadTask implements Subscriber {

    private static final Logger LOGGER = Logger.getLogger(VulnerabilityManagementUploadTask.class);

    protected void inform(final Event e, final FindingUploader findingsUploader) {
        if (e instanceof AbstractVulnerabilityManagementUploadEvent) {
            try (QueryManager qm = new QueryManager()) {
                findingsUploader.setQueryManager(qm);
                if (findingsUploader.isEnabled()) {
                    if (findingsUploader instanceof ProjectFindingUploader) {
                        for (final Project project : qm.getAllProjects()) {
                            processProjectFindings((ProjectFindingUploader) findingsUploader, qm, project);
                        }
                    } else if (findingsUploader instanceof PortfolioFindingUploader) {
                        final PortfolioFindingUploader uploader = (PortfolioFindingUploader) findingsUploader;
                        final InputStream payload = uploader.process();
                        uploader.upload(payload);
                    }
                }
            } catch (Exception ex) {
                LOGGER.error(ex.getMessage());
            }
        }
    }

    private void processProjectFindings(final ProjectFindingUploader uploader, final QueryManager qm, final Project project) {<FILL_FUNCTION_BODY>}
}

        if (uploader.isProjectConfigured(project)) {
            LOGGER.debug("Initializing integration point: " + uploader.name() + " for project: " + project.getUuid());
            final List<Finding> findings = qm.getFindings(project);
            final InputStream payload = uploader.process(project, findings);
            LOGGER.debug("Uploading findings to " + uploader.name() + " for project: " + project.getUuid());
            uploader.upload(project, payload);
        }
    
<no_super_class>