if (properties.containsKey("SqlMapConfigURL")) {
reader = Resources.getUrlAsReader((String) properties.get("SqlMapConfigURL"));
} else if (properties.containsKey("SqlMapConfigResource")) {
reader = Resources.getResourceAsReader((String) properties.get("SqlMapConfigResource"));
} else {
throw new DaoException("SQLMAP transaction manager requires either 'SqlMapConfigURL' or 'SqlMapConfigResource' to be specified as a property.");
}
client = SqlMapClientBuilder.buildSqlMapClient(reader, properties);
} catch (IOException e) {
throw new DaoException("Error configuring SQL Map. Cause: " + e);
}
}