public static boolean ifNotGranted(final String notGrantedRoles) {
    Set<String> parsedAuthorities = parseAuthorities(notGrantedRoles);
    if (parsedAuthorities.isEmpty())
      return true;

    GrantedAuthority[] authorities = getUserAuthorities();

    for (GrantedAuthority authority : authorities) {
      if (parsedAuthorities.contains(authority.getAuthority()))
        return false;
    }
    return true;
  }