// TODO (andrey, 15/12/09)
// do not use metadata, as it triggers CDO class loading (CAY-1334)
// to avoid this evil hack, we need some common interface for SelectQuery, EJBQL
// & SQLTemplate, but 3.0 API is frozen now
QueryCacheStrategy selectedStrategy = (QueryCacheStrategy) PropertyUtils
.getProperty(query, "cacheStrategy");
cacheModel.setSelectedItem(selectedStrategy != null
? selectedStrategy
: QueryCacheStrategy.getDefaultStrategy());