PolicyReferenceFactory referenceFactory = createReferenceFactory();
ThemeActivator themeActivator = new ThemeActivator(referenceFactory);
// Get the activated variant.
Content activatedContent = activateContent(themeContent, themeActivator,
"policy.mthm", PolicyType.THEME, VariantType.THEME);
// Get the content.
ActivatedThemeContent activatedThemeContent =
(ActivatedThemeContent) activatedContent;