protected void createAccessMessage() {
        final ApplicationMessage applicationMessage = (ApplicationMessage) mMeshMessage;
        final ApplicationKey key = applicationMessage.getAppKey();
        final int akf = applicationMessage.getAkf();
        final int aid = applicationMessage.getAid();
        final int aszmic = applicationMessage.getAszmic();
        final int opCode = applicationMessage.getOpCode();
        final byte[] parameters = applicationMessage.getParameters();
        message = mMeshTransport.createMeshMessage(mSrc, mDst, mLabel, applicationMessage.messageTtl,
                key, akf, aid, aszmic, opCode, parameters);
        applicationMessage.setMessage(message);
    }
Creates the access message to be sent
mesh/src/main/java/no/nordicsemi/android/mesh/transport/ApplicationMessageState.java