String secretKey = UUID.randomUUID().toString();
//User suppose to give where he wants to store interemdiate data to them after confirmation
//here there's not tenant registration happened yet so get the super tenant registry instance
Registry registry = Util.getConfigSystemRegistry(0);
Resource resource = registry.newResource();
// store the redirector url
resource.setProperty("redirectPath", serviceConfig.getRedirectPath());
// store the user data, redirectPath can be overwritten here.
for (String s : data.keySet()) {
resource.setProperty(s, data.get(s));