final Object obj = Class.forName(className).newInstance();
final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Object obj = cl.loadClass(className).newInstance();
	private void createType(Map types, ConfigurationElement element) {		final String className = element.getAttribute("class");		if (className != null) { 			try {				final Object obj = Class.forName(className).newInstance();				final FileSystemType type = (FileSystemType)obj;				types.put(type.getName(), type);			} catch (ClassCastException ex) {				log.error(					"FileSystemType "						+ className						+ " does not implement FileSystemType.");			} catch (ClassNotFoundException ex) {				log.error("Cannot load FileSystemType " + className);			} catch (IllegalAccessException ex) {				log.error("No access to FileSystemType " + className);			} catch (InstantiationException ex) {				log.error("Cannot instantiate FileSystemType " + className);			}		}	}