FindModel () { FindModel findModel = new FindModel(); findModel.setStringToFind(stringToFind); findModel.setCaseSensitive(caseSensitive); findModel.setWholeWordsOnly(wholeWords); findModel.setRegularExpressions(regularExpression); return findModel; }