Used the HashMapDatabaseAdapter to convert an Entity object to an HashMap object.