ReferencingParser changes for revisions 26167:26168

This commit does not apply to SIS since we will not port the Hints class. Instead, we will try to use some more standard dependency injection mechanism.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r26167:26168 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/wkt/Parser.java
Revision 26167Revision 26168
}
element.close();
if (factories == null) {
    final Hints hints = new Hints(null);
    hints.put(Hints.DATUM_FACTORY,          datumFactory);
    hints.put(Hints.CS_FACTORY,             csFactory);
    hints.put(Hints.CRS_FACTORY,            crsFactory);
}
element.close();
if (factories == null) {
    final Hints hints = new Hints( Collections.EMPTY_MAP );
    hints.put(Hints.DATUM_FACTORY,          datumFactory);
    hints.put(Hints.CS_FACTORY,             csFactory);
    hints.put(Hints.CRS_FACTORY,            crsFactory);