RetryException is not really implemented in this API because the properties file is not here, change to IllegalStateException