existingParams.put(FlowHandler.TO_FLOW_DOCUMENT_ID_REQUEST_PARAM_NAME, flowDocumentIdValues);
FacesContext context = FacesContext.getCurrentInstance();
FlowHandler fh = context.getApplication().getFlowHandler();
if (fh instanceof FlowHandlerImpl) {
FlowHandlerImpl fhi = (FlowHandlerImpl) fh;
List<String> flowReturnDepthValues = new ArrayList<String>();
flowReturnDepthValues.add("" + fhi.getAndClearReturnModeDepth(context));
existingParams.put(FlowHandlerImpl.FLOW_RETURN_DEPTH_PARAM_NAME, flowReturnDepthValues);
}
} else {
String flowId = navCase.getFromOutcome();