public boolean hasRuleBlock(String name) {
        for (RuleBlock ruleBlock : this.ruleBlocks) {
            if (ruleBlock.getName().equals(name)) {
                return true;
            }
        }
        return false;
    }
public boolean hasRuleBlock ( String name ) { for ( RuleBlock ruleBlock : this . ruleBlocks ) { if ( ruleBlock . getName ( ) . equals ( name ) ) { return true ; } } return false ; }
Removes the rule block of the given name.

@param name is the name of the rule block
@return the rule block of the given name
@throws RuntimeException if there is no block with the given name