+public class LookupProxyFactory<T> {
+
+ /**
+ * Interface to lookup the object to delegate to.
+ *
+ * @author Erik Brakkee
+ */
+ public static interface Lookup {
+ /**
+ * Looks up the object.
+ * @return Object (non-null)
+ * @throws Any exception in case the object cannot be found.
+ */
+ Object lookup() throws Exception;
+ }
+