MultiArchiveBean multiArchiveBean = new MultiArchiveBean();
xwconn = connectionManager.getConnection(ServiceUser.getArchive(userBean, multiArchivedbNames[i]));
FindDocumentCommand findDocumentCommand = null;
findDocumentCommand = new FindDocumentCommand(parameterMap, modelMap);
queryResult = findDocumentCommand.execute(workFlowBean, xwconn);
QueryBean queryBean = new QueryBean();
queryBean.setDb(workFlowBean.getAlias());
System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
System.out.println("findDocumentCommand.getLaFrase() " + findDocumentCommand.getLaFrase());
queryBean.setQuery(findDocumentCommand.getLaFrase());
queryBean.setTot(String.valueOf(queryResult.elements));
multiArchiveBean.setArchive(ServiceUser.getArchive(userBean, multiArchivedbNames[i]));
multiArchiveBean.setRecordFound((queryResult.elements));
multiArchiveBeans.add(multiArchiveBean);
if (httpSession.getAttribute("arrQueryBean" + multiArchivedbNames[i]) == null) {
ArrayList arrQueryBean = new ArrayList();
arrQueryBean.add(queryBean);
httpSession.setAttribute("arrQueryBean" + multiArchivedbNames[i], arrQueryBean);
} else {
ArrayList arrQueryBean = (ArrayList) httpSession.getAttribute("arrQueryBean" + multiArchivedbNames[i]);
boolean insert = true;
int indexQr = 0;
for (int z = 0; z < arrQueryBean.size(); z++) {
QueryBean ilBean = (QueryBean) arrQueryBean.get(z);
System.out.println("ilBean " + ilBean);
System.out.println("queryBean " + queryBean);
if (ilBean.getQuery().equals(queryBean.getQuery())) {
insert = false;
arrQueryBean.remove(z);
arrQueryBean.add(queryBean);
break;
}