code: public static boolean isEnabled(String property, DatasetDescriptor descriptor) {
      if (descriptor.hasProperty(property)) {
        // return true if and only if the property value is "true"
        return Boolean.valueOf(descriptor.getProperty(property));
      }
      return false;
    }
docs: Returns whether the value of the descriptor property is {@code true}.
  
  @param property a String property name
  @param descriptor a {@link DatasetDescriptor}
  @return {@code true} if set and "true", {@code false} otherwise.