/** * Returns all the constraints 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 #constraints()} method instead. */ public List<Constraint> getConstraints() { List<Constraint> result = new ArrayList<>(constraints); if (base != null) { result.addAll(base.getConstraints()); } return result; }