1.1MR C004
svn path=/trunk/; revision=548
diff --git a/spec/chapters/changes.tex b/spec/chapters/changes.tex
index 06f8b5a..7f7fb99 100644
--- a/spec/chapters/changes.tex
+++ b/spec/chapters/changes.tex
@@ -6,6 +6,7 @@
\item Section \ref{servlet}: new requirements for Servlet 3 containers.
\item Section \ref{javaee}: requirements for Java EE 6 containers.
\item Section \ref{standard_entity_providers}: requirements on standard entity providers when presented with an empty request entity.
+\item Section \ref{message_body_writer}: add closeness of generic type as secondary sort key.
\end{itemize}
\section{Changes Since Proposed Final Draft}
diff --git a/spec/chapters/providers.tex b/spec/chapters/providers.tex
index a7a38bb..c459aee 100644
--- a/spec/chapters/providers.tex
+++ b/spec/chapters/providers.tex
@@ -50,7 +50,7 @@
\item Obtain the object that will be mapped to the response entity body. For a return type of \Response\ or subclasses the object is the value of the \code{entity} property, for other return types it is the returned object.
\item Determine the media type of the response, see section \ref{determine_response_type}.
\item Select the set of \MsgWrite\ providers that support (see section \ref{declaring_provider_capabilities}) the object and media type of the response entity body.
-\item Sort the selected \MsgWrite\ providers as described in section \ref{declaring_provider_capabilities}.
+\item Sort the selected \MsgWrite\ providers with a primary key of media type (see section \ref{declaring_provider_capabilities}) and a secondary key of generic type where providers whose generic type is the nearest superclass of the object class are sorted first.
\item\label{findwriter} Iterate through the sorted \MsgWrite\ providers and, utilizing the \code{isWriteable} method of each, choose an \MsgWrite\ that supports the object that will be mapped to the entity body.
\item If step \ref{findwriter} locates a suitable \MsgWrite\ then use its \code{writeTo} method to map the object to the entity body.
\item Else if a suitable data handler can be found using the JavaBeans Activation Framework\cite{jaf} then use it to map the object to the entity body.