core/src/main/java/io/fabric8/maven/core/util/ProfileUtil.java
public static ProcessorConfig blendProfileWithConfiguration(ProcessorConfigurationExtractor configExtractor,
                                                                String profile,
                                                                File resourceDir,
                                                                ProcessorConfig config) throws IOException {
        // Get specified profile or the default profile
        ProcessorConfig profileConfig = extractProcesssorConfiguration(configExtractor, profile, resourceDir);

        return ProcessorConfig.mergeProcessorConfigs(config, profileConfig);
    }
public static ProcessorConfig blendProfileWithConfiguration(ProcessorConfigurationExtractor configExtractor,
                                                                String profile,
                                                                File resourceDir,
                                                                ProcessorConfig config) throws IOException {
        // Get specified profile or the default profile
        ProcessorConfig profileConfig = extractProcesssorConfiguration(configExtractor, profile, resourceDir);

        return ProcessorConfig.mergeProcessorConfigs(config, profileConfig);
    }
public static ProcessorConfig blendProfileWithConfiguration ( ProcessorConfigurationExtractor configExtractor , String profile , File resourceDir , ProcessorConfig config ) throws IOException { // Get specified profile or the default profile ProcessorConfig profileConfig = extractProcesssorConfiguration ( configExtractor , profile , resourceDir ) ; return ProcessorConfig . mergeProcessorConfigs ( config , profileConfig ) ; }
Find an enricher or generator config, possibly via a profile and merge it with a given configuration.

@param configExtractor how to extract the config from a profile when found
@param profile the profile name (can be null, then no profile is used)
@param resourceDir resource directory where to lookup the profile (in addition to a classpath lookup)
@return the merged configuration which can be empty if no profile is given
@param config the provided configuration
@throws IOException
Find an enricher or generator config possibly via a profile and merge it with a given configuration .