public boolean hasRole ( final Optional < ? extends Subject > subjectOption , final String roleName ) { return getRoleNames ( subjectOption ) . contains ( roleName ) ; }
Check if the subject has the given role .