Transfer annotations to replacement method to allow JUnit and AOP etc to work.