private void resolveFileUploadDecoder() {
        String finalUploader = "native";
        fileUploadDecoder = ServiceLoader.load(FileUploadDecoder.class, applicationClassLoader).stream()
                .map(ServiceLoader.Provider::get)
                .filter(d -> d.getName().equals(finalUploader))
                .findFirst()
                .orElseThrow(() -> new FacesException("FileUploaderDecoder '" + finalUploader + "' not found"));
    }
A {@link PrimeApplicationContext} is a contextual store for the current application.

It can be accessed via:
<blockquote>
PrimeApplicationContext.getCurrentInstance(context)
</blockquote>
primefaces/src/main/java/org/primefaces/context/PrimeApplicationContext.java