\r
private static final long serialVersionUID = 2817539422114569506L;\r
private static Logger logger = Logger.getLogger(RecordCommand.class);\r
+ private RecordCommandSp spCommand = null;\r
\r
public RecordCommand() {\r
super("record");\r
for (String parameterName : parameters.keySet()) {\r
newCommand.setParameterInState(parameters.get(parameterName).copy()); \r
} \r
+ newCommand.spCommand = this.spCommand;\r
return newCommand;\r
}\r
\r
* \r
*/\r
public RecordCommandSp getSp () {\r
- return new RecordCommandSp(this);\r
+ if (spCommand==null) {\r
+ spCommand = new RecordCommandSp(this);\r
+ } \r
+ return spCommand;\r
}\r
\r
@Override\r