private IndexedPermissions getPermissions() {
        IndexedPermissions rval = permissions.get();
        if (rval == null) {
            rval = loadPermissions();
            permissions.set(rval);
        }
        return rval;
    }
@return the user permissions for the current user
manager/api/security/src/main/java/io/apiman/manager/api/security/impl/AbstractSecurityContext.java