@Util private static F.T2<List<MessageIndexDto>, Integer> getMessageIndexList( CommonSearchDto cs, int pageNo) { List<MessageIndexDto> messageIndexDtoList = null; if (cs != null && StringUtils.isNotBlank(cs.keyWord)) { cs.searchType = 1; } int moreType = cs.searchType; long advanceId = cs.advanceId; switch (moreType) { case 2: messageIndexDtoList = doAdvanceInfoSearch(advanceId, cs, pageNo); break; case 3: messageIndexDtoList = doDirectAdvanceSearch(pageNo, cs); break; default: messageIndexDtoList = doCommonInfoSearch(cs); } return F.T2(messageIndexDtoList, moreType); }