Adds a resource attribute to component. Atributes must be added before
     * any content is written.
Adds a resource attribute to component. Atributes must be added before
     * any content is written. | PaintTarget.java