ProxyInfo proxy;
ConnectionConfiguration config;
if (props.containsKey("proxy.type")){
ProxyType type = ProxyType.valueOf(props.getProperty("proxy.type"));
String host = props.getProperty("proxy.host");
int port = new Integer(props.getProperty("proxy.port")).intValue();
String user = props.getProperty("proxy.user");
String passwd = props.getProperty("proxy.password");
proxy = new ProxyInfo(type, host, port, user, passwd);