[NUCCORE-1258] Adaptation of git pull request from "pktxu". Changed the
order of options from the pull request to match what the javadocs says
for the allocateConnection method. Added TODOs for DN 4.1 to sort out
AbstractConnectionFactory and use of factoryName/resourceType and not
put resourceType into the "options"