gradlePluginLord.removeRequestObserver(observer);
if (!completed) {
//its still running. Something is wrong.
request.cancel(); //just to clean up after ourselves a little, cancel the request.
throw new AssertionError("Failed to complete refresh in alotted time: " + maximumWaitValue + " " + maximumWaitUnits + ". Considering this failed.");
}
if (errorOutput.get() != null) {
throw new AssertionError(String.format("Command failed with output:%n%s", errorOutput.get()));
}