public RuleRemoveBranchTransformer( PlanPhase phase, RuleExpression ruleExpression )
{
super( phase, ruleExpression );
if( subGraphTransformer != null )
graphTransformer = new RemoveBranchGraphTransformer( subGraphTransformer, ruleExpression.getMatchExpression() );
else if( contractedTransformer != null )
graphTransformer = new RemoveBranchGraphTransformer( contractedTransformer, ruleExpression.getMatchExpression() );
else
graphTransformer = new RemoveBranchGraphTransformer( ruleExpression.getMatchExpression() );
}