void () { try { Pair<List<String>, List<String>> pair = myRepository.fetchProductAndComponentNames(); myProductInput.setVariants(pair.getFirst()); myComponentInput.setVariants(pair.getSecond()); } catch (Exception e) { LOG.warn(e); } }