public WOElement template() {
try {
WOElement element = null;
String cacheKey = (String) valueForBinding(CACHE_KEY_BINDING);
if (cacheKey != null) { // should cache
<BUG>CacheEntry cacheEntry = (CacheEntry) _cache.valueForKey(cacheKey);
</BUG>
Object requestedVersion = valueForBinding(CACHE_VERSION_BINDING);
if (cacheEntry != null && (requestedVersion == null || requestedVersion.equals(cacheEntry.version()))) {
if (log.isDebugEnabled()) {

public WOElement template() {
try {
WOElement element = null;
String cacheKey = (String) valueForBinding(CACHE_KEY_BINDING);
if (cacheKey != null) { // should cache
CacheEntry cacheEntry = _cache.objectForKey(cacheKey);
Object requestedVersion = valueForBinding(CACHE_VERSION_BINDING);
if (cacheEntry != null && (requestedVersion == null || requestedVersion.equals(cacheEntry.version()))) {
if (log.isDebugEnabled()) {
