code: public void addPlugin(String pluginTypeName) {
  		try {
  			Class<?> pluginType = Class.forName(pluginTypeName);
  			if (SimonConsolePlugin.class.isAssignableFrom(pluginType)) {
  				addPlugin((Class<? extends SimonConsolePlugin>) pluginType);
  			} else {
  				throw new IllegalArgumentException("Invalid plugin type " + pluginTypeName);
  			}
  		} catch (ClassNotFoundException classNotFoundException) {
  			throw new IllegalArgumentException("Invalid plugin type " + pluginTypeName, classNotFoundException);
  		}
  	}
docs: Register a plugin
  
  @param pluginTypeName Plugin type