Added support for specifying FetchType attributes.

The attribute value is added only when specified.