final Filter thirdFilter = new Filter("(" + object + " = " + realObject + ")");
final Filter fourthFilter = new Filter("(" + subject + " = " + realSubject + ")");
final Projection firstProjection = new Projection();
firstProjection.addProjectionElement(subject);
if(graphConstraint!=null && graphConstraint.isVariable() && !graphConstraint.equals(getItem(subjectNode)) && !graphConstraint.equals(getItem(objectNode))) {
firstProjection.addProjectionElement((Variable)graphConstraint);
}
final Projection secondProjection = new Projection();
secondProjection.addProjectionElement(object);
if(graphConstraint!=null && graphConstraint.isVariable() && !graphConstraint.equals(getItem(subjectNode)) && !graphConstraint.equals(getItem(objectNode))) {
secondProjection.addProjectionElement((Variable)graphConstraint);