Added ability to detect restful controllers and add them