@Override
    void assembleMessageParameters() {
        MeshLogger.verbose(TAG, "NetKeyIndex: " + mNetKey.getKeyIndex());
        final byte[] netKeyIndex = MeshParserUtils.addKeyIndexPadding(mNetKey.getKeyIndex());

        final ByteBuffer paramsBuffer = ByteBuffer.allocate(18).order(ByteOrder.LITTLE_ENDIAN);
        paramsBuffer.put(netKeyIndex[1]);
        paramsBuffer.put((byte) ((netKeyIndex[0] & 0xFF) & 0x0F));
        paramsBuffer.put(mNetKey.getKey());
        mParameters = paramsBuffer.array();
    }
Constructs ConfigNetKeyAdd message.

@param networkKey Network key for this message
@throws IllegalArgumentException if any illegal arguments are passed
mesh/src/main/java/no/nordicsemi/android/mesh/transport/ConfigNetKeyAdd.java