This is example that shows how create an AttributeStore with records read from a WFS DescribeFeatureType response.
Note that the js is not minified so it is readable. See attributes.js.