if(key==null) key="";
return getStorageScope(pc).generateToken(key, forceNew);
}
public static StorageScope getStorageScope(PageContext pc) throws PageException {
Session session = pc.sessionScope();
if(!(session instanceof StorageScope))
throw new ExpressionException("this function only works with CF Sessions");
return (StorageScope) session;
}