if (type.equals(BuildInvocations.class)) {
if (!versionDetails.maySupportModel(GradleProject.class)) {
throw Exceptions.unsupportedModel(type, versionDetails.getVersion());
}
GradleProject gradleProject = delegate.produceModel(GradleProject.class, operationParameters);
return adapter.adapt(type, new BuildInvocationsConverter().convert(gradleProject));
}
return delegate.produceModel(type, operationParameters);
}