/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.felix.configadmin.plugin.interpolation;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.service.cm.ConfigurationPlugin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Dictionary;
import java.util.Hashtable;

public class Activator implements BundleActivator {
    static final String DIR_PROPERTY = "org.apache.felix.configadmin.plugin.interpolation.dir";
    static final int PLUGIN_RANKING = 500;

    static final Logger LOG = LoggerFactory.getLogger(InterpolationConfigurationPlugin.class);

    @Override
    public void start(BundleContext context) throws Exception {
        String directory = context.getProperty(DIR_PROPERTY);
        if (directory == null) {
            LOG.warn("Framework property '" + DIR_PROPERTY + "' not specified. File-based substitution is disabled.");
        }

        ConfigurationPlugin plugin = new InterpolationConfigurationPlugin(context, directory);
        Dictionary<String, Object> props = new Hashtable<>();
        props.put(ConfigurationPlugin.CM_RANKING, PLUGIN_RANKING);
        props.put("config.plugin.id", "org.apache.felix.configadmin.plugin.interpolation");

        if (directory != null)
            props.put(DIR_PROPERTY, directory);
        else
            props.put(DIR_PROPERTY, "<not configured>");
        context.registerService(ConfigurationPlugin.class, plugin, props);
    }

    @Override
    public void stop(BundleContext context) throws Exception {
        // Service is automatically unregistered when bundle is stopped.
    }
}

@@ -1535,170 +1535,8 @@
 TY);
-%0A        if (directory == null) %7B%0A            LOG.warn(%22Framework property '%22 + DIR_PROPERTY + %22' not specified. File-based substitution is disabled.%22);%0A        %7D
 %0A%0A  

Remove unnecessary warning.