unlockRegistry(RegistryLock.READ);
protected void unregisterPortletApplication(PortletApplication pa, boolean purgeEntityInfo) throws RegistryException { updateSearchEngine(true,pa); // todo keep (User)Prefs? lockRegistry(RegistryLock.WRITE); try { registry.removeApplication(pa); } finally { unlockRegistry(RegistryLock.WRITE); } revokeDefaultPermissions(pa.getName()); }
unlockRegistry(RegistryLock.READ);
unlockRegistry(RegistryLock.READ);
unlockRegistry(RegistryLock.WRITE);