code: private Class<?> beanType(String name) {
  		Class<?> type = context.getType(name);
  		if (ClassUtils.isCglibProxyClass(type)) {
  			return AopProxyUtils.ultimateTargetClass(context.getBean(name));
  		}
  		return type;
  	}
docs: Return the bean type, untangling the proxy if needed
  
  @param name
  the bean name
  @return The Class of the bean