vars.errorCtx.setObjectId(null);
statement.setSqlMapClient(vars.client);
if (cacheModelName != null && cacheModelName.length() > 0 && vars.client.getDelegate().isCacheModelsEnabled()) {
CacheModel cacheModel = vars.client.getDelegate().getCacheModel(cacheModelName);
return new CachingStatement(statement, cacheModel);
} else {
return statement;
}
}