added resource modification to RestUtils class