added support for converting collections to model defined rest response