properties.put(HttpConfiguration.keyHttpPort, new Integer(serverSocket.getLocalPort()));
	public synchronized void setProperties(Dictionary properties) throws IOException {		ServerSocketInterface oldServerSocket = serverSocket;		if (properties != null) {			String address = (String) properties.get(HttpConfiguration.keyHttpAddress);			int port = ((Integer) (properties.get(HttpConfiguration.keyHttpPort))).intValue();			String scheme = (String) properties.get(HttpConfiguration.keyHttpScheme);			socketTimeout = ((Integer) (properties.get(HttpConfiguration.keyHttpTimeout))).intValue() * 1000;			if ("ALL".equalsIgnoreCase(address)) { //$NON-NLS-1$				address = null;			}			if ((serverSocket == null) || (port != serverSocket.getLocalPort()) || !scheme.equals(serverSocket.getScheme())) {				serverSocket = configuration.createServerSocket(address, port, scheme);				closeServerSocket(oldServerSocket);			} else if ((serverSocket.getAddress() != null && !serverSocket.getAddress().equals(address)) || (serverSocket.getAddress() == null && address != null)) {				serverSocket = null;				closeServerSocket(oldServerSocket);				serverSocket = configuration.createServerSocket(address, port, scheme);				synchronized (lock) {					lock.notify();				}			}			if (service == null) {				service = http.context.registerService(httpsvcClass, this, properties);			} else {				service.setProperties(properties);			}		} else {			serverSocket = null;			closeServerSocket(oldServerSocket);			service.unregister();			service = null;		}	}