@Override
 public final JsonHome getJsonHome() {
   if (jsonHome == null) {
     synchronized (this) {
       if (jsonHome == null) {
         LOG.info("Generating JsonHome...");
         jsonHome = jsonHomeGenerator.with(controllerTypes).generate();
         LOG.info(
             "Generated JsonHome containing {} relation types.", jsonHome.getResources().size());
       }
     }
   }
   return jsonHome;
 }
 @Autowired
 public void setJsonHomeGenerator(final JsonHomeGenerator jsonHomeGenerator) {
   LOG.info("Using {} to generate JsonHome.", jsonHomeGenerator.getClass().getName());
   this.jsonHomeGenerator = jsonHomeGenerator;
 }