@Override
 public ModbusResponse process(DataHolder dataHolder) throws ModbusNumberException {
   WriteSingleCoilResponse response =
       new WriteSingleCoilResponse(getServerAddress(), getStartAddress(), getCoil());
   try {
     dataHolder.writeCoil(getStartAddress(), getCoil());
   } catch (ModbusProtocolException e) {
     response.setException();
     response.setModbusExceptionCode(e.getException().getValue());
   }
   return response;
 }
 @Override
 public boolean validateResponseImpl(ModbusResponse response) {
   WriteSingleCoilResponse r = (WriteSingleCoilResponse) response;
   return r.getStartAddress() == getStartAddress() && r.getValue() == getValue();
 }