/** * Initialize the {@link KeyGeneratorSettings} which are used to init the current instance * * @return * @throws Exception */ protected KeyGeneratorSettings initSettings() { try { KeyGeneratorSettings s = KeyGeneratorSettings.loadSettings(vertx, MongoKeyGenerator.class, context); if (!s.isEdited()) { throw new InitException( "The settings are not yet edited. Change the value of property 'edited' to true inside the appropriate file"); } return s; } catch (Exception e) { LOGGER.error("", e); throw ExceptionUtil.createRuntimeException(e); } }