@@ -0,0 +1,1480 @@
+/**%0A * Copyright (C) FuseSource, Inc.%0A * http://fusesource.com%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fusesource.fabric.service;%0A%0Aimport org.apache.felix.scr.annotations.Component;%0Aimport org.apache.felix.scr.annotations.Service;%0Aimport org.fusesource.fabric.api.PlaceholderResolver;%0A%0A@Component(name = %22org.fusesource.fabric.placholder.resolver.env%22,%0A        description = %22Environment Placeholder Resolver%22)%0A@Service(PlaceholderResolver.class)%0Apublic class EnvPlaceholderResolver implements PlaceholderResolver %7B%0A%0A    private static final String ENV_SCHEME = %22env%22;%0A    @Override%0A    public String getScheme() %7B%0A        return ENV_SCHEME;%0A    %7D%0A%0A    @Override%0A    public String resolve(String pid, String key, String value) %7B%0A        if (value != null && value.length() %3E ENV_SCHEME.length())  %7B%0A            String name = value.substring(ENV_SCHEME.length() + 1);%0A            return System.getenv(name);%0A        %7D%0A        return value;%0A    %7D%0A%7D%0A

Add env placeholder resolver.