class OnMasterBizCondition extends SpringBootCondition {

    private static Object masterBiz;

    @Override
    public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {<FILL_FUNCTION_BODY>}

    private List<AnnotationAttributes> annotationAttributesFromMultiValueMap(
            MultiValueMap<String, Object> multiValueMap) {
        List<Map<String, Object>> maps = new ArrayList<>();
        multiValueMap.forEach((key, value) -> {
            for (int i = 0; i < value.size(); i++) {
                Map<String, Object> map;
                if (i < maps.size()) {
                    map = maps.get(i);
                }
                else {
                    map = new HashMap<>();
                    maps.add(map);
                }
                map.put(key, value.get(i));
            }
        });
        List<AnnotationAttributes> annotationAttributes = new ArrayList<>(maps.size());
        for (Map<String, Object> map : maps) {
            annotationAttributes.add(AnnotationAttributes.fromMap(map));
        }
        return annotationAttributes;
    }

    private static class Spec {
        private final String extensionCondition;

        Spec(AnnotationAttributes annotationAttributes) {
            this.extensionCondition = annotationAttributes.getString("extensionCondition");
        }

        public String getExtensionCondition() {
            return extensionCondition;
        }
    }
}

        // 非 Ark 环境
        if (!SofaBootEnvUtils.isArkEnv()) {
            return new ConditionOutcome(true, "SOFAArk has not started.");
        }

        if (masterBiz == null) {
            String masterBizName = ArkConfigs.getStringValue(Constants.MASTER_BIZ);
            List<Biz> biz = ArkClient.getBizManagerService().getBiz(masterBizName);
            Assert.isTrue(biz.size() == 1, "master biz should have and only have one.");
            masterBiz = biz.get(0);
        }

        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
        // is master biz, return directly
        if (contextClassLoader.equals(((Biz) masterBiz).getBizClassLoader())) {
            return new ConditionOutcome(true,
                "Current context classloader equals master biz classloader.");
        }

        // if not master biz, should be determine by extensionCondition
        List<AnnotationAttributes> allAnnotationAttributes = annotationAttributesFromMultiValueMap(metadata
            .getAllAnnotationAttributes(ConditionalOnMasterBiz.class.getName()));
        for (AnnotationAttributes annotationAttributes : allAnnotationAttributes) {
            Spec spec = new Spec(annotationAttributes);
            String extensionCondition = spec.getExtensionCondition();
            String property = context.getEnvironment().getProperty(extensionCondition);
            if ("true".equalsIgnoreCase(property)) {
                return new ConditionOutcome(true,
                    "Current context classloader not equals master biz classloader, but allow by extension condition.");
            }
        }

        return new ConditionOutcome(false,
            "Current context classloader not equals master biz classloader.");
    
<methods>public void <init>() ,public abstract org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext, org.springframework.core.type.AnnotatedTypeMetadata) ,public final boolean matches(org.springframework.context.annotation.ConditionContext, org.springframework.core.type.AnnotatedTypeMetadata) <variables>private final org.apache.commons.logging.Log logger