Source:
<code>private static final JSONResultAction toJSONResultAction(final ResultAction resultAction) { if (resultAction == null) { return null; } else if (resultAction instanceof OpenReportAction) { final OpenReportAction openReportAction = (OpenReportAction)resultAction; return new JSONOpenReportAction(openReportAction.getFilename(), openReportAction.getContentType()); } else if (resultAction instanceof OpenViewAction) { final OpenViewAction openViewAction = (OpenViewAction)resultAction; <START> final boolean openInNewTab = ((OpenViewAction)resultAction).isOpenInNewTab(); <END> return new JSONOpenViewAction(openViewAction.getViewId(), openViewAction.getProfileId(), openViewAction.isModalOverlay(), openInNewTab); } else if (resultAction instanceof OpenIncludedViewAction) { final OpenIncludedViewAction openIncludedViewAction = (OpenIncludedViewAction)resultAction; return new JSONOpenIncludedViewAction(openIncludedViewAction.getViewId(), openIncludedViewAction.getProfileId()); } else if (resultAction instanceof OpenSingleDocument) { final OpenSingleDocument openDocumentAction = (OpenSingleDocument)resultAction; final DocumentPath documentPath = openDocumentAction.getDocumentPath(); final boolean openInNewTab = ((OpenSingleDocument)resultAction).isOpenInNewTab(); return new JSONOpenSingleDocumentAction(documentPath.getWindowId(), documentPath.getDocumentId().toJson(), openDocumentAction.isModal(), openDocumentAction.isOpenInNewTab()); } else if (resultAction instanceof SelectViewRowsAction) { final SelectViewRowsAction selectViewRowsAction = (SelectViewRowsAction)resultAction; return new JSONSelectViewRowsAction(selectViewRowsAction.getViewId(), selectViewRowsAction.getRowIds()); } else if (resultAction instanceof DisplayQRCodeAction) { final DisplayQRCodeAction displayQRCodeAction = (DisplayQRCodeAction)resultAction; return new JSONDisplayQRCodeAction(displayQRCodeAction.getCode()); } else { logger.warn("Unknown result action: {}. Ignoring it.", resultAction); return null; } }</code><technical_language>openViewAction</technical_language>

Target:
private static final JSONResultAction toJSONResultAction(final ResultAction resultAction) { if (resultAction == null) { return null; } else if (resultAction instanceof OpenReportAction) { final OpenReportAction openReportAction = (OpenReportAction)resultAction; return new JSONOpenReportAction(openReportAction.getFilename(), openReportAction.getContentType()); } else if (resultAction instanceof OpenViewAction) { final OpenViewAction openViewAction = (OpenViewAction)resultAction; return new JSONOpenViewAction(openViewAction.getViewId(), openViewAction.getProfileId(), openViewAction.getTargetTab()); } else if (resultAction instanceof OpenIncludedViewAction) { final OpenIncludedViewAction openIncludedViewAction = (OpenIncludedViewAction)resultAction; return new JSONOpenIncludedViewAction(openIncludedViewAction.getViewId(), openIncludedViewAction.getProfileId()); } else if (resultAction instanceof OpenSingleDocument) { final OpenSingleDocument openDocumentAction = (OpenSingleDocument)resultAction; final DocumentPath documentPath = openDocumentAction.getDocumentPath(); return new JSONOpenSingleDocumentAction(documentPath.getWindowId(), documentPath.getDocumentId().toJson(), openDocumentAction.getTargetTab()); } else if (resultAction instanceof SelectViewRowsAction) { final SelectViewRowsAction selectViewRowsAction = (SelectViewRowsAction)resultAction; return new JSONSelectViewRowsAction(selectViewRowsAction.getViewId(), selectViewRowsAction.getRowIds()); } else if (resultAction instanceof DisplayQRCodeAction) { final DisplayQRCodeAction displayQRCodeAction = (DisplayQRCodeAction)resultAction; return new JSONDisplayQRCodeAction(displayQRCodeAction.getCode()); } else { logger.warn("Unknown result action: {}. Ignoring it.", resultAction); return null; } }