class ApolloAutoConfiguration {
    @Autowired
    private Environment environment;

    @Bean
    @ConditionalOnMissingBean
    public Config apolloConfig() {
        String namespace = getNamespace(environment);

        return ConfigService.getConfig(namespace);
    }

    @Bean
    public ApolloOperation apolloOperation() {
        return new ApolloOperation();
    }

    public static String getNamespace(Environment environment) {<FILL_FUNCTION_BODY>}
}

        String namespace = environment.getProperty(ApolloConstant.APOLLO_NAMESPACE);
        if (StringUtils.isEmpty(namespace) || namespace.contains(ApolloConstant.SEPARATE)) {
            namespace = environment.getProperty(ApolloConstant.APOLLO_BOOTSTRAP_NAMESPACES);
        }
        if (StringUtils.isEmpty(namespace) || namespace.contains(ApolloConstant.SEPARATE)) {
            namespace = ApolloConstant.NAMESPACE_APPLICATION;
        }

        return namespace;
    
<no_super_class>