con1.setTokenCriteria(new AgpTokenCriteria());
con1.getTokenCriteria().setCredentials(new AgpCredentials(
attrs.getValue("src-u"), attrs.getValue("src-p")));
con1.getTokenCriteria().setReferer(getReferrer());
source.setConnection(con1);
AgpSearchCriteria searchCriteria = new AgpSearchCriteria();
searchCriteria.setSortField("title");
searchCriteria.setQ(attrs.getValue("src-q"));
searchCriteria.setDeepTotal(Long.valueOf(attrs.getValue("src-m")));
source.setSearchCriteria(searchCriteria);
return source;
}