protected AudioDevice instantiate(ClassLoader loader, String name)
		throws ClassNotFoundException, 
			   IllegalAccessException, 
			   InstantiationException
	{
		AudioDevice dev = null;
		
		Class cls = null;
		if (loader==null)
		{
			cls = Class.forName(name);
		}
		else
		{
			cls = loader.loadClass(name);	
		}

		Object o = cls.newInstance();
		dev = (AudioDevice)o;
		
		return dev;
	}