code: public static void isAvailableOrThrowException(Features features, String feature) {
        Objects.requireNonNull(features, feature);
        if (!features.isAvailable(feature)) {
           throw LogFactory.getLog(MethodHandles.lookup().lookupClass()).featureDisabled(feature);
        }
     }
docs: If the specified feature is not available throw a {@link org.infinispan.commons.CacheConfigurationException}.
  @param features existing instance.
  @param feature the feature string to check.
  @throws NullPointerException if either parameter is null.
  @throws org.infinispan.commons.CacheConfigurationException thrown if the feature was disabled