} finally {
// unget service ref
bundleContext.ungetService(metadata.getServiceReference());
// update result with information about this run
stopWatch.stop();
long elapsedTime = stopWatch.getTime();
if (resultFromHealthCheck != null) {
// wrap the result in an execution result
executionResult = new ExecutionResult(metadata, resultFromHealthCheck, elapsedTime);
}