list.add( getExtension( type, definition.getName(), environment ) );
list.add( getTemporaryExtension( type, definition.getName(), environment ) );
	public Extension[] getAutoStartExtensions(String type, Device device, Locale locale, Environment environment) {		ArrayList list = new ArrayList();		for (Iterator iter = this.autoStartExtensions.iterator(); iter.hasNext();) {			ExtensionDefinition definition = (ExtensionDefinition) iter.next();			if ( type.equals( definition.getType()) && definition.isConditionFulfilled( environment )) {				try {					list.add( getExtension( type, definition.getName(), environment ) );				} catch (Exception e) {					e.printStackTrace();				}			}		}		return (Extension[]) list.toArray( new Extension[ list.size() ] );	}