gatewayRegistry.addPeAndGateway("uk.org.ogsadai.TupleArithmeticProject", "g1");
gatewayRegistry.addPeAndGateway("uk.org.ogsadai.TupleUnionAll", "g1");
gatewayRegistry.addDataSourceAndGateway("res1", "g1");
gatewayRegistry.addDataSourceAndGateway("res2", "g1");
gatewayRegistry.setLocalGatewayName("g1");
AddCandidatePEDetails addCandidatePeDetails =
new AddCandidatePEDetails();
addCandidatePeDetails.setCandiatePERegistry(peCandidateRegistry);
addCandidatePeDetails.setGatewayRegistry(gatewayRegistry);
// Optimiser: add data source anchors
AddDataSourceAnchors addDataSourceAnchors = new AddDataSourceAnchors();
// Optimiser: process data source anchors