Added a getAdapter() method.