Adding rest adapter hack.