List<Post> posts = new ArrayList<Post>();
for(ResourceDifference resource : sourceResourcesMap.get(bs)){
//only new local posts are considered in acceptAllExport
posts.add(resource.getStoredPost());
}
BookmarksExport be = BookmarksExport.getBookmarksExport(user, bs,serviceAddr);
synchronized(be){
be.submitPosts(posts);
try {
be.wait();
} catch (InterruptedException e) {
logger.severe(e.getMessage());
}
}
//change state of exported resources