http://developer.apple.com/mac/library/samplecode/ReplicatorDemo/index.html