Node installationNode = NodeFactory.createAnon();
Node environmentNode = NodeFactory.createAnon();
ElementGroup group = new ElementGroup();
group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasSubProcess"),
processNode));
group.addTriplePattern(new Triple(processNode, NodeFactory.createURI(ONTOLOGY_IRI
+ "requiresInstallation"), installationNode));
group.addTriplePattern(new Triple(installationNode, NodeFactory.createURI(ONTOLOGY_IRI
+ "hasEnvironment"), environmentNode));
group.addTriplePattern(new Triple(environmentNode, NodeFactory.createURI(TYPE_IRI), NodeFactory
.createURI(environmentClass)));