Refactoring for remove custom method on the GWT servlet