public StoredSubscription getSubscription(String subscriptionId) throws IOException {
if (memCache.contains(subscriptionId)) {
return (StoredSubscription) memCache.get(subscriptionId);
}
StoredSubscription subscription = super.getSubscription(subscriptionId);
memCache.put(subscriptionId, subscription, Expiration.byDeltaSeconds(EXPIRATION_TIME));
return subscription;
}