      */     
     protected function get styleManager():IStyleManager2
     {
-        // FIXME: (dloverin) Linking in UIComponent causes some resource bundle
-        // tests that use non-enUS locales because the SDK is only built
-        // with the enUS locale.
-        //if (styleName is UIComponent)
-        if ("styleManager" in styleName) 
+        if (uiComponentClass == null)
+            uiComponentClass = Class(getDefinitionByName("mx.core.UIComponent"));
+        
+        if (styleName is uiComponentClass) 
             return styleName.styleManager;
         else
             return StyleManager.getStyleManager(null);

	 *  Set by horizontalGradientMatrix() or verticalGradientMatrix().
	 */
	private static var tempMatrix:Matrix = new Matrix();
	
	//--------------------------------------------------------------------------
	//
	//  Constructor

import flash.display.Graphics;
import flash.display.Shape;
import flash.geom.Matrix;
import flash.utils.getDefinitionByName;

import mx.core.FlexShape;
import mx.core.IFlexModule;
