/** * Returns all the locators of this service, including the ones declared in base services. The returned list is a * copy of the one used internally, so it is safe to modify it. If you aren't going to modify the list consider * using the {@link #locators()} method instead. */ public List<Locator> getLocators() { List<Locator> result = new ArrayList<>(locators); if (base != null) { result.addAll(base.getLocators()); } return result; }