Added pradeep's java code for refactoring DAO to use REST repo