public T create ( BeanInstance beanInstance ) { final T proxy = ( System . getSecurityManager ( ) == null ) ? run ( ) : AccessController . doPrivileged ( this ) ; ( ( ProxyObject ) proxy ) . weld_setHandler ( new ProxyMethodHandler ( contextId , beanInstance , bean ) ) ; return proxy ; }
Method to create a new proxy that wraps the bean instance .