@Override public Object fetch() { return resolver.fetch(property.getValue()); }
@Override public <T> T fetch(Class<T> type) { return resolver.fetch(type, doc.getPropertyValue(xpath)); }
@Override public <T> T fetch(Class<T> type) { return resolver.fetch(type, property.getValue()); }
@Override public Object fetch(Object context) { return resolver.fetch(doc.getPropertyValue(xpath), context); }
@Override public Object fetch(Object context) { return resolver.fetch(property.getValue(), context); }
@Override public Object fetch() { return resolver.fetch(doc.getPropertyValue(xpath), doc.getCoreSession()); }
/** * Provides the entity referenced by a value, in the given context. * * @param value The reference. * @param context A resolver-specific context allowing resolution of the value. * @return The referenced entity, null if no entity matches the value. * @throws IllegalStateException If this resolver has not been configured. * @since 10.2 */ default Object fetch(Object value, Object context) { return fetch(value); }
Object object = resolver.fetch(value, context); if (object != null) { try {