implemented getRim() method in RimRestService.java