renamed method check to isAcceptable in RestUtils class