/** * stop() * * @throws Exception */ public void stop() throws Exception { this.ps.deactivateProfile(TRANSIENT_PROFILE_KEY); this.ps.unregisterProfile(TRANSIENT_PROFILE_KEY); }
profileService.unregisterProfile(profKey);
/** * Unregisters the profile registered in {@link #start()}. */ public void stop() throws Exception { ProfileService profSvc = getProfileService(); ProfileKey profKey = getProfileKey(); if (profSvc != null && profKey != null) { try { // Inactivate first if needed if (profSvc.getActiveProfileKeys().contains(profKey)) { releaseProfile(); } profSvc.unregisterProfile(profKey); } catch (NoSuchProfileException e) { log.warn("Could not unregister unknown profile " + profKey); } } }
profileService.unregisterProfile(profKey);