Added default case to CreateAdapter method