Map<String, JClassType> placeTokens = findPlaceTokens(generatorContext);
checkPlaces(placeTokens);
Injector injector = Guice.createInjector(new RebindModule(new Logger(treeLogger), generatorContext));
VelocityPlacetokenGenerator.Factory factory = injector.getInstance(VelocityPlacetokenGenerator.Factory.class);
VelocityPlacetokenGenerator generator = factory.create(placeTokens.keySet());
try {
return generator.generate();
} catch (Exception e) {
treeLogger.log(Type.ERROR, e.getMessage(), e);
throw new UnableToCompleteException();
}
}