Implementing GenericAdapter.