throws NormalizationException
{
final RenderableTextFactory textFactory = getCurrentTextFactory();
if (content instanceof GenericType)
{
final GenericType generic = (GenericType) content;
ResourceKey source = null;
if (content instanceof ResourceType)
{
final ResourceType resourceType = (ResourceType) content;
source = resourceType.getContent().getSource();
}
final Object raw = generic.getRaw();
if (raw instanceof Image)
{
final RenderableReplacedContent replacedContent =
createImage((Image) raw, source, context);
if (replacedContent != null)