Class<?> classType;
if (objectType instanceof ClassObjectType) {
ClassObjectType classObjectType = (ClassObjectType) objectType;
classType = classObjectType.getClassType();
} else if (objectType instanceof FactTemplateObjectType) {
FactTemplateObjectType factTemplateObjectType = (FactTemplateObjectType) objectType;
String className = factTemplateObjectType.getFactTemplate().getName();
try {
classType = context.getDialect().getTypeResolver().resolveType(className);
} catch (ClassNotFoundException e) {
throw new RuntimeException("Can't figure out: " + expr + ", class name: " + className);
}