Modified to no longer use return value, rather the script is responsible for calling SampleResult.setSuccessful(true/false)