@Override
    public void stop(StopContext context) {
        try {
            PolicyConfigurationFactory pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory();
            synchronized (pcf) { // synchronize on the factory
                policyConfiguration = pcf.getPolicyConfiguration(contextId, false);
                policyConfiguration.delete();
            }
        } catch (Exception e) {
            SecurityLogger.ROOT_LOGGER.errorDeletingJACCPolicy(e);
        }
        policyConfiguration = null;
    }
@ Override public void stop ( StopContext context ) { try { PolicyConfigurationFactory pcf = PolicyConfigurationFactory . getPolicyConfigurationFactory ( ) ; synchronized ( pcf ) { policyConfiguration = pcf . getPolicyConfiguration ( contextId , false ) ; policyConfiguration . delete ( ) ; } } catch ( Exception e ) { SecurityLogger . ROOT_LOGGER . errorDeletingJACCPolicy ( e ) ; } policyConfiguration = null ; }
{@inheritDoc}