}
@Override
public NavigationCase getNavigationCase(FacesContext context, String fromAction, String outcome) {
if (SpringFacesContext.getCurrentInstance() != null) {
PreRenderComponentEvent preRenderComponentEvent = MvcNavigationSystemEventListener
.getLastPreRenderComponentEvent(context);
UIComponent component = (preRenderComponentEvent == null ? null : preRenderComponentEvent.getComponent());
String defaultDestinationViewId = getDefaultDestinationViewId(context, fromAction, outcome);
NavigationContext navigationContext = new NavigationContextImpl(fromAction, outcome, true, component,
defaultDestinationViewId);
if (this.navigationOutcomeResolver.canResolve(context, navigationContext)) {
try {