AgpConnection con2 = new AgpConnection();
HostContextPair pair = HostContextPair.makeHostContextPair(getDestinationHost());
con2.setHost(pair.getHost());
con2.setWebContext(pair.getContext());
con2.setTokenCriteria(new AgpTokenCriteria());
con2.getTokenCriteria().setCredentials(new AgpCredentials(
attrs.getValue("ags-dest-u"), attrs.getValue("ags-dest-p")));
con2.getTokenCriteria().setReferer(getReferrer());
destination.setConnection(con2);
destination.setDestinationOwner(attrs.getValue("ags-dest-o"));
destination.setDestinationFolderID(attrs.getValue("ags-dest-f"));