docs: private void checkNotProtected() throws ConstraintViolationException, RepositoryException {
          if (getDefinition().isProtected()) {
              throw new ConstraintViolationException(JcrI18n.cannotRemoveItemWithProtectedDefinition.text(getPath()));
          }
      }