}
public static <K, V> boolean deleteFromAllStores(K key, Cache<K, V> cache) {
AdvancedCache<K, V> advCache = cache.getAdvancedCache();
PersistenceManager pm = advCache.getComponentRegistry().getComponent(PersistenceManager.class);
return pm.deleteFromAllStores(key, false);
}
public static Subject makeSubject(String... principals) {
Set<Principal> set = new HashSet<Principal>();
for (String principal : principals) {