moved getFirstPhase to service
made instance variables final in all services
made instance variables final in all resources
made instance variable final in phase write dao
service refactoring