List<ManipulatingParameter> params = this.getSystemParameter(species, timestep);
ManipulatingNodeProperty[] nps = (ManipulatingNodeProperty[]) lManipulatingNodeProperty.toArray(new ManipulatingNodeProperty[0]);
ManipulatingParameter[] sysParams = CopySystemParameter(params);
SimpleManipulationRequest smr = new SimpleManipulationRequest();
smr.setSaveLastTimestepOnly(true);
smr.setUser(user);
smr.setBeginingTimestepIdx(timestep);
if (isFirstManipulation) {
smr.setNetworkId(networkOrManipulationId);
} else {
smr.setManipulationId(networkOrManipulationId);
}
smr.setTimestepsToRun(Integer.valueOf(propertiesConfig.getProperty("timestepsToRunDefault")));
smr.setManipulationModelNodes(nodes);
smr.setNodeProperties(nps);
smr.setSysParams(sysParams);
smr.setDescription(species.getName() + " " + propertiesConfig.getProperty("addNewSpeciesTypeDescription"));
smr.setSaveLastTimestepOnly(false);
ManipulationResponse response = new ManipulationResponse();
try {
response = (ManipulationResponse) svc.executeManipulationRequest(smr);
//TODO: Write web service call to database