code: private <T> T createClientProxy(Bean<T> bean) throws RuntimeException {
          return createClientProxy(bean, bean.getTypes());
      }
docs: Creates a Javassist scope adaptor (client proxy) for a bean
  <p/>
  Creates a Javassist proxy factory. Gets the type info. Sets the interfaces
  and superclass to the factory. Hooks in the MethodHandler and creates the
  proxy.
  
  @param bean      The bean to proxy
  @param beanIndex The index to the bean in the manager bean list
  @return A Javassist proxy
  @throws InstantiationException When the proxy couldn't be created
  @throws IllegalAccessException When the proxy couldn't be created