storm-apt/impl/src/main/java/com/turbomanage/storm/apt/database/DatabaseModel.java
public static DatabaseModel readFromIndex(BufferedReader reader, ProcessorLogger logger) throws IOException {
		String dbInfo = reader.readLine();
		logger.info(dbInfo);
		Map<String, String> props = CsvUtils.getAsMap(dbInfo);
		String dbName = props.get("dbName");
		int dbVersion = Integer.parseInt(props.get("dbVersion"));
		String helperClass = props.get("helperClass");
		DatabaseModel dbModel = new DatabaseModel(dbName, dbVersion, helperClass);
		// read TableHelpers
		List<String> tables = new ArrayList<String>();
		String th = reader.readLine();
		while (th != null && !th.equals(StormEnvironment.END_DATABASE)) {
			tables.add(th);
			th = reader.readLine();
		}
		dbModel.tableHelpers = tables;
		return dbModel;
	}
public static DatabaseModel readFromIndex(BufferedReader reader, ProcessorLogger logger) throws IOException {
		String dbInfo = reader.readLine();
		logger.info(dbInfo);
		Map<String, String> props = CsvUtils.getAsMap(dbInfo);
		String dbName = props.get("dbName");
		int dbVersion = Integer.parseInt(props.get("dbVersion"));
		String helperClass = props.get("helperClass");
		DatabaseModel dbModel = new DatabaseModel(dbName, dbVersion, helperClass);
		// read TableHelpers
		List<String> tables = new ArrayList<String>();
		String th = reader.readLine();
		while (th != null && !th.equals(StormEnvironment.END_DATABASE)) {
			tables.add(th);
			th = reader.readLine();
		}
		dbModel.tableHelpers = tables;
		return dbModel;
	}
Populate the model of a database and its associated tables from
a file in support of incremental compilation.

@param reader
@param logger
@return DatabaseModel
@throws IOException