public boolean inhabitantIndexChanged(EventType eventType, Habitat habitat,
Inhabitant<?> i, String index, String name, Object service) {
// for each FactoryFor component, insert inhabitant for components created by the factory
if (index.equals(FactoryFor.class.getName())) {
FactoryFor ff = i.type().getAnnotation(FactoryFor.class);
Class<?> targetClass = ff.value();
FactoryCreator target = new FactoryCreator(targetClass, i, habitat, MultiMap.<String,String>emptyMap());
habitat.add(target);
habitat.addIndex(target, targetClass.getName(), null);
}