}
try {
isAuthorized(URLDecoder.decode(resource,"UTF-8"));
} catch(AuthorizationDeniedException e) {
throw new AuthorizationDeniedException("You are not authorized to view this page.");
} catch( EJBException e) {
final Throwable cause = e.getCause();
final String dbProblemMessage = getText("DATABASEDOWN");
if ( cause instanceof SQLException ) {
final Exception e1 = new Exception(dbProblemMessage);