private HostInfo initalizeHostInfo() { HostInfo host = new HostInfo(); host.setName(configurationService.pathvalue(String.class, Constants.HOST, Constants.NAME)); host.setCores(configurationService.pathvalue(Integer.class, Constants.HOST, Constants.CORES)); host.setMemory(configurationService.pathvalue(Integer.class, Constants.HOST, Constants.MEMORY)); host.setVersion( configurationService.pathvalue(String.class, Constants.HOST, Constants.VERSION)); host = initializeDatastores(host); host = initializeNetworkinterfaces(host); return host; }