private void setModel(String modelName) {
		if (modelName.isEmpty())
			modelName = this.getClass().getSimpleName().replace("Controller", "");
		
		modelName += modelName.equals("App")? "Model" : "";
		
		try {
			model = (Model) Class.forName("app.models." + modelName).newInstance();
			model.setController(this);
		}
		catch (ClassNotFoundException exception) {
			System.out.println("Model '"+ modelName +"' not found!");
			System.out.println(exception.getMessage());
		}
		catch (InstantiationException exception) {
			System.out.println("Failed to create an instance!");
			System.out.println(exception.getMessage());
		}
		catch (IllegalAccessException exception) {
			System.out.println("Illegal access!");
			System.out.println(exception.getMessage());
		}
	}