public void addData(EmbeddedObjectContainer dbSession) {
if(populator == null) throw new IllegalStateException("No populator set");
try {
populator.populateEntityGraph();
final EntityGraph eg = populator.getEntityGraph();
final Iterator<Class<?>> itr = eg.getEntityTypes();
while(itr.hasNext()) {
final Class<?> et = itr.next();
log.info("Storing entities of type: " + et.getSimpleName() + "...");
final Collection<?> ec = eg.getEntitiesByType(et);
for(final Object e : ec) {
log.info("Storing entity: " + e + " ...");
dbSession.store(e);
}
}