Added custom adapter for plain objects and AR