FieldExtractor extractor = null;
if ( objectType.getValueType() == ValueType.FACTTEMPLATE_TYPE ) {
//@todo use extractor cache
final FactTemplate factTemplate = ((FactTemplateObjectType) objectType).getFactTemplate();
extractor = new FactTemplateFieldExtractor( factTemplate,
factTemplate.getFieldTemplateIndex( fieldName ) );
} else {
try {
ClassLoader classloader = context.getPkg().getPackageCompilationData().getClassLoader();
extractor = context.getDialect().getClassFieldExtractorCache().getExtractor( ((ClassObjectType) objectType).getClassType(),