         
         for each (p in names)
         {
-            kind = ATTRIBUTE_MAP[p];
+            kind = TextUtil.ATTRIBUTE_MAP[p];
             
-            if (kind == CONTAINER)
+            if (kind == TextUtil.CONTAINER)
                 attributes[p] = containerAttributes[p];
-            else if (kind == PARAGRAPH)
+            else if (kind == TextUtil.PARAGRAPH)
                 attributes[p] = paragraphAttributes[p];
-            else if (kind == CHARACTER)
+            else if (kind == TextUtil.CHARACTER)
                 attributes[p] = characterAttributes[p];
         }
         

        
        for (var p:String in attributes)
        {
            var kind:String = ATTRIBUTE_MAP[p];
            
            if (kind == CONTAINER)
            {
                if (!containerAttributes)
                   containerAttributes =  new ContainerAttributes();
                containerAttributes[p] = attributes[p];
            }
            else if (kind == PARAGRAPH)
            {
                if (!paragraphAttributes)
                   paragraphAttributes =  new ParagraphAttributes();
                paragraphAttributes[p] = attributes[p];
            }
            else if (kind == CHARACTER)
            {
                if (!characterAttributes)
                   characterAttributes =  new CharacterAttributes();


        if (!names)
        {
            names = TextUtil.ALL_ATTRIBUTE_NAMES;
            
            needContainerAttributes = true;
            needParagraphAttributes = true;
