}
public RuleConditionElement build(final RuleBuildContext context,
final BaseDescr descr,
final Pattern prefixPattern) {
final ConditionalElementDescr cedescr = (ConditionalElementDescr) descr;
final GroupElement ge = newGroupElementFor( cedescr.getClass() );
context.getBuildStack().push( ge );
if ( prefixPattern != null ) {
ge.addChild( prefixPattern );
}
// iterate over child descriptors
for ( final Iterator it = cedescr.getDescrs().iterator(); it.hasNext(); ) {
// gets child to build
final BaseDescr child = (BaseDescr) it.next();
// gets corresponding builder
final RuleConditionBuilder builder = (RuleConditionBuilder) context.getDialect().getBuilder( child.getClass() );