in src/main/java/com/aws/pattern/myapp/security/SecurityUtils.java [69:72]
public static boolean hasCurrentUserThisAuthority(String authority) {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
return authentication != null && getAuthorities(authentication).anyMatch(authority::equals);
}