     }
 
 
-    private static function construct(wrapper:String, displayObject:*):*
-    {
-        var clazz:Object = getDefinitionByName(wrapper);
+    private static function construct(adapter:String, displayObject:*):*
+    {
+        var clazz:Object = getDefinitionByName(adapter);
         return new clazz(displayObject);
     }
 }

        {
            var key:String = arg.@key;
            var value:String = arg.@value;
            if (argDict.hasOwnProperty(key))
            {
                argDict[key] = value;

    private static function injectProperty(property:XML, metadata:XML,
            source:DisplayObjectContainer, target:*):void
    {
        var args:Object = { name: null, adapter: null };

        try {
            collectArgs(metadata, args);
            var displayPath:String = args.name || property.@name;
            var child:* = getChildByPath(source, displayPath);

            if (args.adapter === "")
            {
                args.adapter = property.@type;
            }

            if (args.adapter !== null)
            {
                child = construct(args.adapter, child);
            }

            target[property.@name] = child;
