class FeatureValidator {

  void validateFeatureRegistrationThrowing(Feature feature) throws ServiceException {

    validateOwnerThrowing(feature);
    validateKeysThrowing(feature);
    validateOptionsThrowing(feature.getOptions());

    if (feature.hasNamespaces()) {
      validateNamespaceFeaturesThrowing(feature);
    }
  }

}