private void init() {
cookieEnabled = defaultIfNull(cookieEnabled, COOKIE_ENABLED_DEFAULT);
urlEncodeEnabled = defaultIfNull(urlEncodeEnabled, URL_ENCODE_ENABLED_DEFAULT);
if (generator == null) {
generator = new UUIDGenerator();
if (generator instanceof InitializingBean) {
try {
((InitializingBean) generator).afterPropertiesSet();
} catch (Exception e) {