List<Resource> resources, String[] agents, Date date) {
List<ReplicationResult> results = new ArrayList<ReplicationResult>();
ReplicationOptions opts = new ReplicationOptions();
AgentIdFilter agentFilter = new AgentIdFilter(agents);
opts.setFilter(agentFilter);
Session session = resolver.adaptTo(Session.class);
for (Resource resource : resources) {
String path = resource.getPath();
try {