class AuthorizationsUtil {

    public static Set<Authorizations> getDowngradedAuthorizations(String requestedAuths, Principal principal) {
        if (principal instanceof DatawavePrincipal) {
            return getDowngradedAuthorizations(requestedAuths, (DatawavePrincipal) principal);
        } else {
            return Collections.singleton(new Authorizations());
        }
    }

}