// TODO: Add a cache for no-dev.
Injector injector = InjectorBuilder.create(wroManagerFactory).build();
WroManager manager = wroManagerFactory.create();
WroModelFactory modelFactory = manager.getModelFactory();
injector.inject(modelFactory);
WroModel model = modelFactory.create();
Map<String, Group> groups = new HashMap<String, Group>();
for (Group group : model.getGroups()) {
groups.put(group.getName(), group);
}
return groups;
} finally {
Context.unset();