Implemented rest.Resource support