@Override
    public String toString() {
        String s;
        if(dataSize>0 && data != null) {
            s = "Message{" + ", opcode=" + String.format("%x", opcode) + ", dataSize=" + dataSize + ", operatorId=" + operatorId + ", data=" + DatatypeConverter.printHexBinary(data) + '}';
        } else {
            s = "Message{" + ", opcode=" + String.format("%x", opcode) + ", dataSize=" + dataSize + ", operatorId=" + operatorId + ", data=" + "null" + '}';
        }
        return s;
    }