Update RestRPCService.groovy

fixing issues with service