Refactoring GenericApi - allowing method binding using annotations.