} //else TODO: pin forever an oid by creating the CacheEntry
}
public void pinAll(Class clazz, boolean subClasses) {
final List classesToPin = getClasses(clazz, subClasses);
try {
cacheManager.unfix(new CacheEntryFilter() {
public boolean accept(CacheEntry ce) {
Object o = ce.getCeObject();
return ((FixableCacheEntry) ce).getCeFixCount() == 0
&& o != null && classesToPin.contains(o.getClass());
}