public ActionInsertFact getRHSBoundFact(final String var) {
        if (this.rhs == null) {
            return null;
        }
        for (int i = 0; i < this.rhs.length; i++) {
            if (this.rhs[i] instanceof ActionInsertFact) {
                final ActionInsertFact p = (ActionInsertFact) this.rhs[i];
                if (p.getBoundName() != null && var.equals(p.getBoundName())) {
                    return p;
                }
            }
        }
        return null;
    }
public ActionInsertFact getRHSBoundFact ( final String var ) { if ( this . rhs == null ) { return null ; } for ( int i = 0 ; i < this . rhs . length ; i ++ ) { if ( this . rhs [ i ] instanceof ActionInsertFact ) { final ActionInsertFact p = ( ActionInsertFact ) this . rhs [ i ] ; if ( p . getBoundName ( ) != null && var . equals ( p . getBoundName ( ) ) ) { return p ; } } } return null ; }
This will return the ActionInsertFact that a variable is bound to.

@param var The bound fact variable (NOT bound field).
@return null or the ActionInsertFact found.