diff --git a/openbis/resource/dependency-structure.ddf b/openbis/resource/dependency-structure.ddf
index ded60d322d5fa3b1d4e5efaa2091bbc415d99f72..37bc733f62a80b1d48158d5b1b01c8115387fb18 100644
--- a/openbis/resource/dependency-structure.ddf
+++ b/openbis/resource/dependency-structure.ddf
@@ -218,7 +218,7 @@ check layeringOf plugin.${pq}.web.client-server
 
 [api-shared] = ${plugin}.*.shared.api.*
 [api-client] = ${plugin}.*.client.api.*
-[java] = java* *.annotation.* *.annotate.* ch.systemsx.cisd.common.api.IRpcService
+[java] = java* *.annotation.* *.annotate.* ch.systemsx.cisd.common.api.IRpcService ${generic}.shared.api.*
 [java-and-api-shared] = [java] [api-shared] ch.systemsx.cisd.common.api.client.*
 
 check sets [api-shared] [api-client]