working on bean model and adapter.