if (provider instanceof LocationProvider) {
pipe.setLocationProvider((LocationProvider)provider);
}
provider.setPipelineConfiguration(pipe);
receiver.setPipelineConfiguration(pipe);
PullPushCopier copier = new PullPushCopier(provider, receiver);
try {
copier.copy();
} finally {
if (options.isPleaseCloseAfterUse()) {
provider.close();
}
}