Start to move business logic into external java class