code: 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;
      }
docs: Method to create a new proxy that wraps the bean instance.
  
  @param beanInstance the bean instance
  @return a new proxy object