public static ItsNatDocFragmentTemplateImpl createItsNatDocFragmentTemplate(String name,String mime,Object source,ItsNatServletImpl servlet)
{
MarkupSourceImpl markupSource = MarkupSourceImpl.createMarkupSource(source);
if (NamespaceUtil.isHTMLorXHTMLMime(mime))
return new ItsNatHTMLDocFragmentTemplateImpl(name,mime,markupSource,servlet);
else if (NamespaceUtil.isOtherNSMime(mime))
return new ItsNatOtherNSDocFragmentTemplateImpl(name,mime,markupSource,servlet);
else
return new ItsNatXMLDocFragmentTemplateImpl(name,mime,markupSource,servlet);
}