listener = new LinkListener(linkManager, this, currentGenerator);
    public void setProperties(String prefix, 			      Properties properties) {	super.setProperties(prefix, properties);	String realPrefix = PropUtils.getScopedPropertyPrefix(prefix);	String quietString = properties.getProperty(realPrefix + QuietProperty);	if (quietString != null && quietString.intern() == "true") {	    quiet = true;	}	String portString = properties.getProperty(realPrefix + PortProperty);	host = properties.getProperty(realPrefix + HostProperty);	port = PropUtils.intFromProperties(properties, realPrefix + PortProperty,					   LinkServerStarter.DEFAULT_PORT);	linkManager = new LinkManager(host, port);	linkManager.setObeyCommandToExit(PropUtils.booleanFromProperties(properties, realPrefix + ExitOnCommandProperty, false));	String propertiesURL = properties.getProperty(realPrefix + ArgsProperty);	args = new LinkProperties();  // Empty if not filled.	if (propertiesURL != null) {	    try{		URL propertiesFile = new URL(propertiesURL);		args.load(propertiesFile.openStream());	    } catch (java.net.MalformedURLException mue) {		System.err.println("LinkLayer:  Properties URL isn't valid: " +				   realPrefix + ArgsProperty);		System.err.println(mue);	    } catch (IOException ioe) {		System.err.println("LinkLayer: IOException reading properties file:");		System.err.println(ioe);	    }	}	currentGenerator = (OMGridGenerator) PropUtils.objectFromProperties(properties, realPrefix + GridGeneratorProperty);	if (currentGenerator == null) {	    Debug.message("linkdetail", getName()+			  "|LinkLayer: no generator for grid objects.");	}	distanceLimit = PropUtils.intFromProperties(properties, realPrefix + DistanceLimitProperty, distanceLimit);	listener = new LinkListener(linkManager, this, currentGenerator);    }