Ability to use custom adapter class

This allows using custom adapter class (if it is specified in config)