move logic with detect dbo adapter to adapter manager