Extracting raw type before creating BeanClass