PortletDefinition pd = (PortletDefinition)obj;
if (pd.getApplication() == null)
{
return;
}
CacheElement entry = new EhCacheElementImpl(oid, obj);
oidCache.put(entry);
DistributedCacheObject wrapper = new RegistryCacheObjectWrapper(oid, pd.getUniqueName());
nameCache.remove(pd.getUniqueName());
CacheElement nameEntry = nameCache.createElement(pd.getUniqueName(), wrapper);