/** * Executes a backend action. * * @param action * the backend action to execute. * @param initialContext * the initial action context. * @param subject * the JAAS subject to execute the action for. * @param locale * the locale used to execute the action. * @return true if the action execution was successful. */ protected boolean executeAction(BackendAction action, Map<String, Object> initialContext, Subject subject, Locale locale) { configureApplicationSession(subject, locale); Map<String, Object> startupActionContext = new HashMap<>(); startupActionContext.putAll(getBackendController() .getInitialActionContext()); startupActionContext.putAll(initialContext); boolean success = getBackendController().execute(action, startupActionContext); return success; }