// to this wrapper-stylesheet.
nonPaddingWrapperStyleSheet.setParent(parent);
try
{
final InstanceID id = nonPaddingWrapperStyleSheet.getId();
lookupKey.setStyleClass(NonPaddingWrapperStyleSheet.class.getName());
lookupKey.setInstanceId(id);
final CacheCarrier cc = (CacheCarrier) cache.get(lookupKey);
if (cc == null)
{
final CacheKey key = new CacheKey(id, NonPaddingWrapperStyleSheet.class.getName());
final SimpleStyleSheet styleSheet = new SimpleStyleSheet(nonPaddingWrapperStyleSheet);
cache.put(key, new CacheCarrier(nonPaddingWrapperStyleSheet.getChangeTracker(), styleSheet));
return styleSheet;
}
if (cc.getChangeTracker() != nonPaddingWrapperStyleSheet.getChangeTracker())
{
final CacheKey key = new CacheKey(id, NonPaddingWrapperStyleSheet.class.getName());
final SimpleStyleSheet styleSheet = new SimpleStyleSheet(nonPaddingWrapperStyleSheet);
cache.put(key, new CacheCarrier(nonPaddingWrapperStyleSheet.getChangeTracker(), styleSheet));
return styleSheet;
}
return cc.getStyleSheet();
}
finally
{
nonPaddingWrapperStyleSheet.setParent(null);
}
}
final InstanceID id = parent.getId();
final String styleClass = parent.getClass().getName();
lookupKey.setStyleClass(styleClass);
lookupKey.setInstanceId(id);
final CacheCarrier cc = (CacheCarrier) cache.get(lookupKey);
if (cc == null)