TRINIDAD-2448 Optimize ChangeManager.createDocumentChange() implementation
Currently the implementation of org.apache.myfaces.trinidad.change ChangeManager.createDocumentChange( ComponentChange change) does not account for fact that the supplied ComponentChange implementation can also be implementing DocumentChange. Improvement is to do this check first, type cast the supplied component to DocumentChange and return. 
Thanks to Prakash Udupa for the patch
2 files changed