private ResourceSupport doWithReferencedProperty(RootResourceInformation repoRequest, Serializable id,
String propertyPath, Function<ReferencedProperty, ResourceSupport> handler, HttpMethod method) throws Exception {
RepositoryInvoker invoker = repoRequest.getInvoker();
if (!invoker.exposesFindOne()) {
throw new HttpRequestMethodNotSupportedException(method.name());
}
Object domainObj = invoker.invokeFindOne(id);