captchaInfoBean.setSecretKey(randomSecretKey); //random generated value as secret key
captchaInfoBean.setImagePath("registry" + RegistryConstants.PATH_SEPARATOR + "resource" +
RegistryConstants.CONFIG_REGISTRY_BASE_PATH + imagePath);
// now create an entry in the registry on the captcha
Resource recordResource = superTenantRegistry.newResource();
((ResourceImpl) recordResource).setVersionableChange(false); // no need to version
recordResource.setProperty(StratosConstants.CAPTCHA_TEXT_PROPERTY_KEY, captchaText);
recordResource.setProperty(StratosConstants.CAPTCHA_PATH_PROPERTY_KEY, imagePath);
superTenantRegistry.put(StratosConstants.CAPTCHA_DETAILS_PATH +