Refactoring to do reflexion without spring