public static boolean isApplicationContext(ProxyContext context) {
        return context.getApiKeyData().getPerRequestKey() != null;
    }
Checks if the context represents an application rather than a user.
Applications should have access to their own published system resources.

@param context The proxy context
@return true if this appears to be an application context, false for user contexts
server/src/main/java/com/epam/aidial/core/server/security/AccessService.java