Fix determineAdapter logic to reflect changes to adapter interface
cs-fixer
Merge pull request #192 from jubianchi/fix-determine-adapter-logic

Fix determineAdapter logic