private void addAuthorizationErrors(ActionErrors errors, NotAuthorizedException e) { String messageException = e.getCause().getCause().getMessage();
private void addAuthorizationErrors(ActionErrors errors, NotAuthorizedFilterException e) { String messageException = e.getMessage();
    private void addAuthorizationErrors(ActionErrors errors, NotAuthorizedException e) {        String messageException = e.getCause().getCause().getMessage();        String message = null;        String arg1 = null;        String arg2 = null;        if (messageException.indexOf("+") != -1) {            message = messageException.substring(0, messageException.indexOf("+"));            String newMessage = messageException.substring(messageException.indexOf("+") + 1);            if (newMessage.indexOf("+") != -1) {                arg1 = newMessage.substring(0, newMessage.indexOf("+"));                arg2 = newMessage.substring(newMessage.indexOf("+") + 1);            } else {                arg1 = newMessage;            }        } else {            message = messageException;        }        errors.add("notauthorized", new ActionError(message, arg1, arg2));    }