/** * Returns an unmodifiable list containing all extensions on this element which match the given * URL. * * @param theUrl The URL. Must not be blank or null. * @return an unmodifiable list containing all extensions on this element which match the given * URL */ public List<Extension> getExtensionsByUrl(String theUrl) { org.apache.commons.lang3.Validate.notBlank(theUrl, "theUrl must not be blank or null"); ArrayList<Extension> retVal = new ArrayList<Extension>(); for (Extension next : getExtension()) { if (theUrl.equals(next.getUrl())) { retVal.add(next); } } return java.util.Collections.unmodifiableList(retVal); }