fac.setRightPattern( parseBaseDescr( collect.getInputPattern(), boundParams ) );
fac.setFactPattern( new FactPattern( pattern.getObjectType() ) );
return fac;
} else if ( patternSource instanceof EntryPointDescr ) {
EntryPointDescr entryPoint = (EntryPointDescr) patternSource;
FromEntryPointFactPattern fep = new FromEntryPointFactPattern();
fep.setEntryPointName( entryPoint.getText() );
fep.setFactPattern( getFactPattern( pattern, boundParams ) );
return fep;
}
throw new RuntimeException( "Unknown pattern source " + patternSource );
}