AgpSearchRequest request = new AgpSearchRequest();
AgpSearchCriteria criteria = new AgpSearchCriteria();
criteria.setQ(sQuery);
criteria.setNum(1);
request.search(destination.getConnection(),criteria,
new AgpItemListener() {
@Override
public void onItemLoaded(AgpConnection connection, AgpItem item)
throws Exception {
if (url.equals(item.getProperties().get("url").getValue()) && Ags2AgpCopy.this.destination.getDestinationOwner().equals(item.getProperties().get("owner").getValue())) {
destinationItem.setProperties(item.getProperties());