public boolean isWatched(Wallet wallet){
  try {
    Script script=getScriptPubKey();
    return wallet.isWatchedScript(script);
  }
 catch (  ScriptException e) {
    log.debug("Could not parse tx output script: {}",e.toString());
    return false;
  }
}

public boolean isWatched ( Wallet wallet ) { try { Script script = getScriptPubKey ( ) ; return wallet . isWatchedScript ( script ) ; } catch ( ScriptException e ) { log . debug ( "Could not parse tx output script: {}" , e . toString ( ) ) ; return false ; } }
returns true if this output is to a key , or an address we have the keys for , in the wallet .
