public static Database getDatabase(String type) {
		for (Database database : values()) {
			if (database.name().equalsIgnoreCase(type)) {
				return database;
			}
		}
		LOG.error("[FATAL] Database type {} is not supported.\n" +
				"Please check the ${NGRINDER_HOME}/database.conf.\n "
				+ "Use H2 instead.", type);
		return H2;
	}
Get the {@link Database} enum value for the given type.

@param type db type name. For example... H2, MySQL..
@return found {@link Database}. {@link Database#H2} if not found.
ngrinder-controller/src/main/java/org/ngrinder/infra/config/Database.java