protected static void clearPermissions() {
        permissions.remove();
        discoverabilities.remove();
    }
Called to clear the current thread local permissions bean.
manager/api/security/src/main/java/io/apiman/manager/api/security/impl/AbstractSecurityContext.java