// prefer session setting
Contentlet second=conAPI.find(cons.get(1).getInode(), user, true);
if(second.getLanguageId()==sessionLang)
idx=1;
}
ContentletSearch c = cons.get(idx);
session.setAttribute(com.dotmarketing.util.WebKeys.HTMLPAGE_LANGUAGE,String.valueOf(conAPI.find(c.getInode(), user, true).getLanguageId()));
request.setAttribute(WebKeys.WIKI_CONTENTLET, c.getIdentifier());
request.setAttribute(WebKeys.WIKI_CONTENTLET_INODE, c.getInode());
request.setAttribute(WebKeys.CLICKSTREAM_IDENTIFIER_OVERRIDE, c.getIdentifier());
request.setAttribute(WebKeys.WIKI_CONTENTLET_URL, url);
String[] x = url.split("/");
for(int i=0;i<x.length;i++){
if(UtilMethods.isSet(x[i])){
request.setAttribute("URL_ARG" + i, x[i]);