improved RestInflector class