}
}
private boolean isAuthorized( Class clazz )
{
Authorized authorizedRoles = ( Authorized ) clazz.getAnnotation( Authorized.class );
boolean isAuthorized = false;
if ( authorizedRoles != null )
{
Account account = WebApplication.get().getLoggedInAccount();
if ( account != null )
{
for ( Role role : authorizedRoles.roles() )
{
if ( account.getRole() == role )
{
isAuthorized = true;
break;