} finally {
dynamicConfigurationLock.unlock();
}
} else {
LOGGER.log(Level.SEVERE, "stopServing timed out");
throw new ApplicationException(ModulesServiceError.ErrorCode.UNEXPECTED_STATE_VALUE,
operation + " timed out");
}
} catch (InterruptedException ie) {
LOGGER.log(Level.SEVERE, "stopServing interrupted", ie);
throw new ApplicationException(ModulesServiceError.ErrorCode.UNEXPECTED_STATE_VALUE,
operation + " interrupted " + ie.getMessage());
}
}