<BUG>IRegion region = FGManager.getInstance().getRegion(entry.getKey());if (region != null) {logger.info("Loading links for region \"" + region.getName() + "\"");</BUG><CONTEXT>public synchronized void loadRegionLinks() {logger.info("Loading region links");try (DB mainDB = DBMaker.fileDB(directory.resolve("regions.foxdb").normalize().toString()).make()) {Map<String, String> linksMap = mainDB.hashMap("links", Serializer.STRING, Serializer.STRING).createOrOpen();linksMap.entrySet().forEach(entry -> {<extra_id_0>String handlersString = entry.getValue();</CONTEXT>
Optional<IRegion> regionOpt = FGManager.getInstance().getRegion(entry.getKey());if (regionOpt.isPresent()) {IRegion region = regionOpt.get();logger.info("Loading links for region \"" + region.getName() + "\"");