// Path: bundles/org.eclipse.ecf.provider.direct/src/org/eclipse/ecf/provider/direct/ExternalServiceProvider.java
// public interface ExternalServiceProvider {
// 
// 	public static final String PROXYID_PROP_NAME = ExternalServiceProvider.class.getName() + ".proxyid";
// 
// 	Object getProxy(String proxyId);
// 
// }


import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.eclipse.ecf.provider.direct.ExternalServiceProvider;
	public static String getStringValue(String sysprop, Map<String, ?> props, String key, String def) {
		if (props == null)
			return def;
		// get system prop first
		Object res = null;
		res = System.getProperty(sysprop);
		// If no system prop value then
		// check for in properties
		if (res == null)
			res = props.get(key);
		// Now check for either Integer or convertable string
		if (res instanceof String)
			return (String) res;
		else
			return def;
	}

	public static Boolean getBooleanValue(String sysprop, Map<String, ?> props, String key, Boolean def) {
		if (props == null)
			return def;
		// get system prop first
		Object res = null;
		res = System.getProperty(sysprop);
		// If no system prop value then
		// check for in properties
		if (res == null)
			res = props.get(key);
		if (res instanceof Boolean)
			return (Boolean) res;
		else if (res instanceof String)
// Path: bundles/org.eclipse.ecf.provider.direct/src/org/eclipse/ecf/provider/direct/ExternalServiceProvider.java
// public interface ExternalServiceProvider {
// 
// 	public static final String PROXYID_PROP_NAME = ExternalServiceProvider.class.getName() + ".proxyid";
// 
// 	Object getProxy(String proxyId);
// 
// }


// Path: bundles/org.eclipse.ecf.provider.direct/src/org/eclipse/ecf/provider/direct/util/PropertiesUtil.java
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.eclipse.ecf.provider.direct.ExternalServiceProvider;

	public static String getStringValue(String sysprop, Map<String, ?> props, String key, String def) {
		if (props == null)
			return def;
		// get system prop first
		Object res = null;
		res = System.getProperty(sysprop);
		// If no system prop value then
		// check for in properties
		if (res == null)
			res = props.get(key);
		// Now check for either Integer or convertable string
		if (res instanceof String)
			return (String) res;
		else
			return def;
	}

	public static Boolean getBooleanValue(String sysprop, Map<String, ?> props, String key, Boolean def) {
		if (props == null)
			return def;
		// get system prop first
		Object res = null;
		res = System.getProperty(sysprop);
		// If no system prop value then
		// check for in properties
		if (res == null)
			res = props.get(key);
		if (res instanceof Boolean)
			return (Boolean) res;
		else if (res instanceof String)
			return (Boolean) Boolean.valueOf((String) res);