while (scanner.hasNextLine()) {
logger.debug("Processing line " + lineNumber);
String line = scanner.nextLine();
String[] tokens = getTokens(line, "#", 3, lineNumber);
if (tokens != null) {
UnionStation unionStation = new UnionStation();
unionStation.setNumber(tokens[0]);
unionStation.setRussianName(tokens[1]);
unionStation.setChineseName(tokens[2]);
this.entityManager.getTransaction().begin();
this.unionStationDao.persist(unionStation);
this.entityManager.getTransaction().commit();
logger.info("Saved union station: " + unionStation);
}