code: private static BotDefinition instantiateClass(
  			Class<? extends BotDefinition> klass) {
  		BotDefinition definition = null;
  		try {
  			definition = klass.newInstance();
  		} catch (InstantiationException e) {
  			e.printStackTrace();
  		} catch (IllegalAccessException e) {
  			e.printStackTrace();
  		}
  		return definition;
  	}
docs: Utility method that instantiates a {@link BotDefinition} class.
  
  @param klass
  the class to instantiate.
  @return a {@link BotDefinition}.