Set adapter if passed in configuration options