private Optional<Path<?>> getPathFromPathSpec(Object instance) {
		try {
			if (instance == null) {
				return Optional.empty();
			}
			return (Optional<Path<?>>) FieldUtils.readDeclaredField(instance, "path", true);
		}
		catch (IllegalAccessException e) {
			LOGGER.warn(e.getMessage());
		}
		return Optional.empty();
	}
Gets path from path spec.

@param instance the instance
@return the path from path spec
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/QuerydslPredicateOperationCustomizer.java