Deprecated DBCollection.apply and DBCollection.doapply methods, as they will be removed in the next major release.

 JAVA-1517