Buggy code:
public class GroupElement extends ConditionalElement implements Externalizable { private static final long serialVersionUID = 510L ; public static final GroupElement . Type AND = GroupElement . Type . AND ; public static final GroupElement . Type OR = GroupElement . Type . OR ; public static final GroupElement . Type NOT = GroupElement . Type . NOT ; public static final GroupElement . Type EXISTS = GroupElement . Type . EXISTS ; private GroupElement . Type type = null ; private List < RuleConditionElement > children = new ArrayList < RuleConditionElement > ( ) ; private ObjectType forallBaseObjectType = null ; private boolean root ; private Map < String , Declaration > outerDeclrarations ; public GroupElement ( ) { } public GroupElement ( final GroupElement . Type type ) { } public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } public void writeExternal ( ObjectOutput out ) throws IOException { } public void addChild ( final RuleConditionElement child ) { } public void addChild ( final int index , final RuleConditionElement rce ) { } public List < RuleConditionElement > getChildren ( ) { } public Map < String , Declaration > getInnerDeclarations ( ) { } public Map < String , Declaration > getInnerDeclarations ( String consequenceName ) { } public Map < String , Declaration > getOuterDeclarations ( ) { } public Map < String , Declaration > getOuterDeclarations ( String consequenceName ) { } public Declaration resolveDeclaration ( final String identifier ) { } public void setForallBaseObjectType ( ObjectType objectType ) { } public ObjectType getForallBaseObjectType ( ) { } public void pack ( ) { } protected void mergeGroupElements ( GroupElement parent , GroupElement child ) { } public void pack ( final GroupElement parent ) { } public boolean equals ( final Object object ) { } public int hashCode ( ) { } public GroupElement clone ( ) { } public GroupElement cloneOnlyGroup ( ) { } protected GroupElement clone ( boolean deepClone ) { } public GroupElement . Type getType ( ) { } public void setType ( final GroupElement . Type type ) { } public boolean isAnd ( ) { } public boolean isOr ( ) { } public boolean isNot ( ) { } public boolean isExists ( ) { } public String toString ( ) { } public List < RuleConditionElement > getNestedElements ( ) { } public boolean isPatternScopeDelimiter ( ) { } public boolean isRoot ( ) { } public void setRoot ( boolean root ) { } public boolean containesNode ( GroupElement . Type node ) { } private static boolean containesNode ( GroupElement . Type node , GroupElement groupElement ) { } public enum Type { AND ( GroupElement . Type . ScopeDelimiter . NEVER ) , OR ( GroupElement . Type . ScopeDelimiter . CONSENSUS ) , NOT ( GroupElement . Type . ScopeDelimiter . ALWAYS ) , EXISTS ( GroupElement . Type . ScopeDelimiter . ALWAYS ) ; enum ScopeDelimiter { NEVER , CONSENSUS , ALWAYS ; } private final GroupElement . Type . ScopeDelimiter scopeDelimiter ; Type ( final GroupElement . Type . ScopeDelimiter scopeDelimiter ) { } private Map < String , Declaration > getInnerDeclarations ( List < RuleConditionElement > children ) { } private Map < String , Declaration > getInnerDeclarations ( List < RuleConditionElement > children , String consequenceName ) { } private Map < String , Declaration > getOuterDeclarations ( List < RuleConditionElement > children , String consequenceName ) { } private Map < String , Declaration > getDeclarations ( List < RuleConditionElement > children , GroupElement . Type . ScopeDelimiter scopeDelimiter , String consequenceName ) { } private Map < String , Declaration > getOuterDeclarations ( RuleConditionElement rce , String consequenceName ) { } private boolean isConsequenceInvoker ( RuleConditionElement rce , String consequenceName ) { <START_BUG> if ( consequenceName == ( RuleImpl . DEFAULT_CONSEQUENCE_NAME ) ) { <END_BUG> return false ; } if ( ( rce instanceof NamedConsequenceInvoker ) && ( ( ( NamedConsequenceInvoker ) ( rce ) ) . invokesConsequence ( consequenceName ) ) ) { return true ; } if ( rce instanceof GroupElement ) { for ( RuleConditionElement child : ( ( GroupElement ) ( rce ) ) . getChildren ( ) ) { if ( isConsequenceInvoker ( child , consequenceName ) ) { return true ; } } } return false ; } public boolean isPatternScopeDelimiter ( ) { } } }

Fix:
if ( DEFAULT_CONSEQUENCE_NAME . equals ( consequenceName ) ) {