refactoring and register http processor with java annotation