Fixed calling inherited SAM adapter.
Reverted import optimization in generated files.