 
 			//get post construct methods
 			var postConstructMethodPoints : Array = [];
-			for each (node in descriptionXML.factory.method.metadata.(@name == 'PostConstruct'))
+			for each (node in factory.method.metadata.(@name == 'PostConstruct'))
 			{
 				injectionPoint = new PostConstructInjectionPoint(node);
 				postConstructMethodPoints.push(injectionPoint);

			{
				return description;
			}
			var descriptionXML : XML = getDescriptionXML(type);
			if (descriptionXML.@name != 'Object' && descriptionXML.factory.extendsClass.length() == 0)
			{
				throw new InjectorError('Interfaces can\'t be used as instantiatable classes.');
			}

			var injectionPoints : Array = [];
			var node : XML;

			//get constructor injections
			var ctorInjectionPoint : InjectionPoint;
			node = descriptionXML.factory.constructor[0];
			if (node)
			{
				ctorInjectionPoint = new ConstructorInjectionPoint(node, type);

				ctorInjectionPoint = new NoParamsConstructorInjectionPoint();
			}
			var injectionPoint : InjectionPoint;
			//get injection points for variables and setters
			for each (node in factory.*.
					(name() == 'variable' || name() == 'accessor').metadata.(@name == 'Inject'))
			{
				injectionPoint = new PropertyInjectionPoint(node);
