code: public void setRegisters(Register[] registers) {
          writeCount = registers != null ? registers.length : 0;
          this.registers = registers != null ? Arrays.copyOf(registers, registers.length) : null;
      }
docs: setRegisters - Sets the registers to be written with this
  <tt>ReadWriteMultipleRequest</tt>.
  <p>
  
  @param registers the registers to be written as <tt>Register[]</tt>.