static boolean inNativeImage() {
        return inImageBuildTimeCode()
            || inImageRuntimeCode()
            || BooleanUtils.toBoolean(System.getProperty(SYSTEM_PROPERTY_SPRING_AOT_PROCESSING));
    }
Determine if code is executing or being aot-processed in a GraalVM native image.

@return true/false
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/nativex/CasRuntimeHintsRegistrar.java