THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Spring provides a mechanism to manage dependencies by injecting them at run time. Struts 2 ActionSupport classes-like classes—like any other Java class-can class—can be injected with a dependent object by the Spring framework. So instead of having the above code, I would have this statement in EditAction.
...