Description of problem: It seems we could clean up the code by removing the getReplication() method and moving its logic under getDefaultReplication().
Here's the change: https://github.com/gluster/hadoop-glusterfs/pull/28