public Elements getElementsByAttributeStarting(String keyPrefix) { return originElement.getElementsByAttributeStarting(keyPrefix); }
private static Map<String, String> getSignalToUrlMapping(Element scriptDocument) { return scriptDocument.getElementsByAttributeStarting(FORM_SIGNAL_ATTR_PREFIX).stream() .flatMap(element -> element.attributes().asList().stream()) .filter(allAttr -> allAttr.getKey().startsWith(FORM_SIGNAL_ATTR_PREFIX)) .collect( Collectors.toMap(e -> e.getKey().replace(FORM_SIGNAL_ATTR_PREFIX, StringUtils.EMPTY), Entry::getValue)); } }