public static Vector create(Vector markerNames, Properties properties, ProgressSupport progressSupport, boolean matchInOutVectorSize) {  int size = markerNames.size(); Vector vector = new Vector(size);  if (progressSupport != null) { progressSupport.fireUpdate(ProgressEvent.UPDATE, "Creating Components", 100, 0); }  for (int i = 0; i < size; i++) { String componentName = (String) markerNames.elementAt(i); String classProperty = componentName + ClassNameProperty; String className = properties.getProperty(classProperty);  if (className == null) { Debug.error("ComponentFactory.create: Failed to locate property \"" + componentName + "\" with class \"" + classProperty + "\"\n  Skipping component \"" + componentName + "\""); if (matchInOutVectorSize) { vector.add(componentName); } continue; }  if (progressSupport != null) { progressSupport.fireUpdate(ProgressEvent.UPDATE, "Creating Components", size, i); }  Object component = create(className, componentName, properties);  if (component != null) { vector.add(component); if (Debug.debugging("componentfactory")) { Debug.output("ComponentFactory: [" + className + "(" + i + ")] created"); } } else { if (matchInOutVectorSize) { vector.add(componentName); } Debug.output("ComponentFactory: [" + componentName + " : " + className + "(" + i + ")] NOT created. -- " + "Set 'componentfactory' debug flag for details."); } }  if (progressSupport != null) { progressSupport.fireUpdate(ProgressEvent.UPDATE, "Configuring...", size, size); } return vector;
public static Vector create(Vector markerNames, Properties properties) { return create(markerNames, properties, null);
    public static Vector create(Vector markerNames, Properties properties,				ProgressSupport progressSupport, 				boolean matchInOutVectorSize) {	int size = markerNames.size();	Vector vector = new Vector(size);	if (progressSupport != null) {	    progressSupport.fireUpdate(ProgressEvent.UPDATE,				       "Creating Components", 100, 0);	}	for (int i = 0; i < size; i++) {	    String componentName = (String) markerNames.elementAt(i);	    String classProperty = componentName + ClassNameProperty;	    String className = properties.getProperty(classProperty);	    if (className == null) {		Debug.error("ComponentFactory.create: Failed to locate property \"" + componentName + "\" with class \"" + classProperty + "\"\n  Skipping component \"" + componentName + "\"");		if (matchInOutVectorSize) {		    vector.add(componentName);		}		continue;	    } 	    if (progressSupport != null) {		progressSupport.fireUpdate(ProgressEvent.UPDATE,					   "Creating Components", size, i);	    }	    Object component = create(className, componentName, properties);	    if (component != null) {		vector.add(component);		if (Debug.debugging("componentfactory")) {		    Debug.output("ComponentFactory: [" + className + "(" + i + ")] created");		}	    } else {		if (matchInOutVectorSize) {		    vector.add(componentName);		}		Debug.output("ComponentFactory: [" + componentName + " : " +			     className + "(" + i + ")] NOT created. -- " +			     "Set 'componentfactory' debug flag for details.");	    }	}	if (progressSupport != null) {	    progressSupport.fireUpdate(ProgressEvent.UPDATE,				       "Configuring...", size, size);	}	return vector;    }