code: public <T> Optional<T> getDataAttrOptional(String dPath, Class<T> clazz) {
          return Optional.ofNullable(getDataAttr(dPath, clazz));
      }
docs: Get a "data"'s sub-attribute using d-path.
  
  @param dPath
  @param clazz
  @return