}
if ( isValid ) {
// get or create the pattern it belongs too
IPattern ifp = findByFactPattern( patterns,
pattern.getBoundName() );
//If the pattern does not exist create one suitable
if ( ifp == null ) {
FactPattern fp = new FactPattern( pattern.getFactType() );