@Override
public Farm findOne(Long id) {
notNull(id);
// See http://springinpractice.com/2011/12/28/initializing-lazy-loaded-collections-with-spring-data-neo4j/
Farm farm = super.findOne(id);
Iterable<Instance> instances = farm.getInstances();
for (Instance instance : instances) {
neo4jTemplate.fetch(instance);
}
return farm;
}