Class c = Class.forName(prefs.get("device" + (i),""));
Class c = Class.forName(devices.get("device" + (i),""));
    	private void loadDevices() throws NoSuchMethodException, IllegalAccessException,			InstantiationException, InvocationTargetException {    		int size = devices.getInt("count",0);    		Class args[] = new Class[0];    		for (int i = 0; i < size; i++) {    			try {    				Class c = Class.forName(prefs.get("device" + (i),""));    				Constructor cons = c.getConstructor(args);    				Device dev = (Device)cons.newInstance(args);    				dev.setPreferences(getPreferences(i));    				deviceList.add(i, dev);    			} catch (ClassNotFoundException ex) {    			}    		}    	}