if (Debug.debugging("ScaleFilterLayer")) {
if (Debug.debugging("scalefilterlayer")) {
    protected void parseLayers(String prefix, Properties props) {        String layersString = props.getProperty(prefix + layersProperty);        Vector layers = getLayers();        if (layersString == null || layersString.equals("")) {            Debug.error("ScaleFilterLayer(): null layersString!");            return;        }        StringTokenizer tok = new StringTokenizer(layersString);        while (tok.hasMoreTokens()) {            Object obj;            String layerName = tok.nextToken();            String classProperty = layerName + ".class";            String className = props.getProperty(classProperty);            if (className == null) {                Debug.error("ScaleFilterLayer.parseLayers(): Failed to locate property \""                        + classProperty + "\"");                Debug.error("ScaleFilterLayer.parseLayers(): Skipping layer \""                        + layerName + "\"");                className = SinkLayer.class.getName();            }            try {                if (className.equals(SinkLayer.class.getName())) {                    obj = SinkLayer.getSharedInstance();                } else {                    obj = Class.forName(className).newInstance();                }                if (Debug.debugging("ScaleFilterLayer")) {                    Debug.output("ScaleFilterLayer.parseLayers(): Instantiated "                            + className);                }            } catch (Exception e) {                Debug.error("ScaleFilterLayer.parseLayers(): Failed to instantiate \""                        + className + "\": " + e);                obj = SinkLayer.getSharedInstance();            }            // create the layer and set its properties            if (obj instanceof Layer) {                Layer l = (Layer) obj;                l.setProperties(layerName, props);                l.addLayerStatusListener(this);                l.addInfoDisplayListener(this);                layers.addElement(l);            }        }    }