HDFS-5642: cast jReplication to jshort to suppress compiler warning.