@Override public String compute(EventClassFqnKey key) { LOG.debug("Fetching result for getEventClassFamilyIdByEventClassFqn using key {}", key); List<EventClassDto> eventClasses = eventClassService.findEventClassByTenantIdAndFqn( key.getTenantId(), key.getFqn()); if (eventClasses != null && !eventClasses.isEmpty()) { String ecfvId = eventClasses.get(0).getEcfvId(); return eventClassService.findEventClassFamilyByEcfvId(ecfvId).getId(); } else { LOG.warn("Fetching result for getEcfvId using key {} Failed!", key); return null; } }
String ecfId = eventClassService.findEventClassFamilyByEcfvId(ecfvId).getId();