SystemCommand nativeCommand = null;
try {
nativeCommand = new SystemCommand(directory, getTimeout(), POLL_INTERVAL, env, getStdin(), getStdout(), getStderr());
results.sampleStart();
int returnCode = nativeCommand.run(cmds);
results.sampleEnd();
results.setResponseCode(Integer.toString(returnCode)); // TODO is this the best way to do this?
if(log.isDebugEnabled()) {
log.debug("Ran :"+cmdLine + " using working directory:"+directory.getAbsolutePath()+
" with execution environment:"+nativeCommand.getExecutionEnvironment()+ " => " + returnCode);