// first we generate a UUID
UserRegistry systemRegistry =
TenantMgtServiceComponent.getRegistryService().getGovernanceSystemRegistry();
String uuid = UUIDGenerator.generateUUID();
// store it in the registry.
Resource resource = systemRegistry.newResource();
String tenantIdStr = Integer.toString(tenantId);
resource.setProperty(MultitenantConstants.TENANT_ID, tenantIdStr);
String uuidPath = StratosConstants.TENANT_CREATION_THEME_PAGE_TOKEN
+ RegistryConstants.PATH_SEPARATOR + uuid;
systemRegistry.put(uuidPath, resource);