public static int getCompanyIdentifier(final int modelId) {
        if (!MeshParserUtils.isVendorModel(modelId)) {
            throw new IllegalArgumentException("Not a valid vendor model ID");
        }
        final ByteBuffer buffer = ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN);
        buffer.putInt(modelId);
        return buffer.getShort(0);
    }
Returns if the model id is a vendor model

@param modelId model identifier
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java