private static QueryRetrieveView createQueryRetrieveView( String viewID, Code[] showInstancesRejectedByCodes, Code[] hideRejectionNoteCodes, boolean hideNotRejectedInstances) { QueryRetrieveView view = new QueryRetrieveView(); view.setViewID(viewID); view.setShowInstancesRejectedByCodes(showInstancesRejectedByCodes); view.setHideRejectionNotesWithCodes(hideRejectionNoteCodes); view.setHideNotRejectedInstances(hideNotRejectedInstances); return view; }