 import flash.system.ApplicationDomain;
 import flash.utils.getQualifiedClassName;
 import flash.utils.getQualifiedSuperclassName;
+
 import mx.core.ApplicationGlobals;
 import mx.core.FlexVersion;
 import mx.core.IFlexDisplayObject;
+
 import mx.core.IFontContextComponent;
 import mx.core.IInvalidating;
 import mx.core.IFlexModuleFactory;

                className = getQualifiedSuperclassName(
                    myApplicationDomain.getDefinition(className));
                className = className.replace("::", ".");
            }
            catch(e:ReferenceError)
            {

        var i:int;

        var uicObject:UIComponent = object as UIComponent;
        var advancedObject:IAdvancedStyleClient = object as IAdvancedStyleClient;
        var styleDeclaration:CSSStyleDeclaration = null;

        var globalClassSelectors:Array = [];
        var styleName:Object = object.styleName;
        if (styleName)
        {
            if (styleName is CSSStyleDeclaration)
            {
                // Get the styles referenced by the styleName property.
                globalClassSelectors.push(CSSStyleDeclaration(styleName));
            }
            else if (styleName is IFlexDisplayObject || styleName is IStyleClient)
            {
