I don't think that you need to worry about thinks like ChunkCount and DesiredChunkDuplication, all of that is handled at the swarm level. You just need to handle calls like 'getFile(participantX, fileY)'. The swarm itself will worry about the duplication and whatnot.