Add a couple of comments about the code structure
MODIFY
dd-java-agent/instrumentation/hibernate-3.5/hibernate-3.5.gradle
dd-java-agent/instrumentation/hibernate-3.5/hibernate-3.5.gradle
+/*
+ * Integration for Hibernate between 3.5 and 4.
+ * Has the same logic as the Hibernate 4+ integration, but is copied rather than sharing a codebase. This is because
+ * the root interface for Session/StatelessSession - SharedSessionContract - isn't present before version 4. So the
+ * instrumentation isn't able to reference it.
+ */
+
// Set properties before any plugins get loaded
project.ext {
// Execute tests on all JVMs, even rare and outdated ones

MODIFY
dd-java-agent/instrumentation/hibernate-common/hibernate-common.gradle
dd-java-agent/instrumentation/hibernate-common/hibernate-common.gradle
+/*
+ * Classes that are common to all versions of the Hibernate instrumentation.
+ */
+
apply from: "${rootDir}/gradle/java.gradle"
dependencies {

Add a couple of comments about the code structure