code: protected ActionResponse asEmbeddedApplicationException(ActionRuntime runtime, LaApplicationException appEx) {
          ActionResponse response = ActionResponse.undefined();
          if (appEx instanceof LoginUnauthorizedException) {
              response = handleLoginUnauthorizedException(runtime, (LoginUnauthorizedException) appEx);
          } else if (appEx instanceof MessagingApplicationException) {
              response = handleMessagingApplicationException(runtime, (MessagingApplicationException) appEx);
          }
          if (response.isUndefined()) {
              response = handleUnknownApplicationException(runtime, appEx);
          }
          return response;
      }
docs: ------------------------------