public static int getNetkeyIndexInt(final byte[] netKeyIndex) {
        return ByteBuffer.wrap(netKeyIndex).order(ByteOrder.BIG_ENDIAN).getShort();
    }
Parses the netKeyIndex

@return netKeyIndex int
mesh/src/main/java/no/nordicsemi/android/mesh/utils/ParseKeys.java