public Set<PermissionBean> getPermissions(String userId) {
        if (userId == null || userId.isBlank()) {
            return Collections.emptySet();
        }

        return tryAction(() -> query.getPermissions(userId));
    }
Some of these arguably live in OrgService

@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/UserService.java