security.unsetCredentialStoreRef();
if (credentialStoreRef != null)
credentialStoreRef.save(security.addNewCredentialStoreRef());
if (security.isSetDoasCurrentCaller())
security.unsetDoasCurrentCaller();
if (doasCurrentCaller)
security.setDoasCurrentCaller(doasCurrentCaller);
if (security.isSetUseContextHandler())
security.unsetUseContextHandler();