Fix a mistake in the determineAdapter method
Merge pull request #193 from jubianchi/fix-determine-adapter-logic

Correct determineAdapter logic