pojo/src/main/java/org/jboss/as/pojo/descriptor/AbstractConfigVisitorNode.java
@SuppressWarnings({"unchecked"})
    protected static BeanInfo getTempBeanInfo(ConfigVisitor visitor, Class<?> clazz) {
        return new DefaultBeanInfo(visitor.getReflectionIndex(), clazz);
    }
@SuppressWarnings({"unchecked"})
    protected static BeanInfo getTempBeanInfo(ConfigVisitor visitor, Class<?> clazz) {
        return new DefaultBeanInfo(visitor.getReflectionIndex(), clazz);
    }
Get temp bean info.

@param visitor the visitor
@param clazz   the class
@return bean info