Vector target = layers;
Vector target = getLayers();
    protected Layer getAppropriateLayer() {	Vector target = layers;	if (target == null) {	    return SinkLayer.getSharedInstance();	}	if ((targetIndex < 0) || (targetIndex > target.size())) {	    return SinkLayer.getSharedInstance();	}	Layer l = (Layer)target.elementAt(targetIndex);	return l;    }