private static KunderaProxy getProxyInstance ( Class factory , CglibLazyInitializer instance ) { KunderaProxy proxy ; try { Enhancer . registerCallbacks ( factory , new Callback [ ] { instance , null } ) ; proxy = ( KunderaProxy ) factory . newInstance ( ) ; } catch ( IllegalAccessException e ) { throw new LazyInitializationException ( e ) ; } catch ( InstantiationException e ) { throw new LazyInitializationException ( e ) ; } finally { Enhancer . registerCallbacks ( factory , null ) ; } return proxy ; }
Gets the proxy instance .