An adaptive RESTful API framework for Java