public TagHandler createTagHandler(String ns, String localName,
TagConfig tag) throws FacesException
{
if (ns != null && ns.startsWith(NAMESPACE_PREFIX))
{
ResourceHandler resourceHandler =
FacesContext.getCurrentInstance().getApplication().getResourceHandler();
if (ns.length() > NAMESPACE_PREFIX.length())
{
String libraryName = ns.substring(NAMESPACE_PREFIX.length());
for (String defaultSuffix : _defaultSuffixesArray)
{
String resourceName = localName + defaultSuffix;
if (handles(resourceName))
{
Resource compositeComponentResourceWrapped = resourceHandler.createResource(resourceName, libraryName);
if (compositeComponentResourceWrapped != null)
{
Resource compositeComponentResource = new CompositeResouceWrapper(compositeComponentResourceWrapped);
if (compositeComponentResource != null)
{