Remove PersistentResourceDefinitionBuilder.addAttributes(Collection)

This version of the method is problematic because any changes to the underling
list will cause existing parsers to change. In particular if an attribute is added
or removed this change will affect old versions of the parser.
Merge pull request #6281 from stuartwdouglas/remove-add-attributes

Remove PersistentResourceDefinitionBuilder.addAttributes(Collection)