handler.onComplete(result);
}
public void onFailure(Throwable failure) {
if (failure instanceof InternalUnsupportedBuildArgumentException) {
handler.onFailure(new UnsupportedBuildArgumentException(connectionFailureMessage(failure)
+ "\n" + failure.getMessage(), failure));
} else if (failure instanceof UnsupportedOperationConfigurationException) {
handler.onFailure(new UnsupportedOperationConfigurationException(connectionFailureMessage(failure)
+ "\n" + failure.getMessage(), failure.getCause()));
} else if (failure instanceof GradleConnectionException) {