static void checkActorAndMustUnderstand(String actor,Boolean mustUnderstand,String messageID,boolean isServer) throws SOAPBindingException, SOAPFaultException {
  if (actor != null && !supportedActors.contains(actor)) {
    if (isServer) {
      SOAPFaultDetail sfd=new SOAPFaultDetail(SOAPFaultDetail.BOGUS_ACTOR,messageID,null);
      SOAPFault sf=new SOAPFault(FAULT_CODE_SERVER,faultStringServerError,null,sfd);
      throw new SOAPFaultException(new Message(sf));
    }
 else {
      throw new SOAPBindingException(bundle.getString("bogusActor"));
    }
  }
  if (mustUnderstand != null && !mustUnderstand.booleanValue()) {
    if (isServer) {
      SOAPFaultDetail sfd=new SOAPFaultDetail(SOAPFaultDetail.BOGUS_MUST_UNSTND,messageID,null);
      SOAPFault sf=new SOAPFault(FAULT_CODE_SERVER,faultStringServerError,null,sfd);
      throw new SOAPFaultException(new Message(sf));
    }
 else {
      throw new SOAPBindingException(bundle.getString("bogusMustUnderstand"));
    }
  }
}

static void checkActorAndMustUnderstand ( String actor , Boolean mustUnderstand , String messageID , boolean isServer ) throws SOAPBindingException , SOAPFaultException { if ( actor != null && ! supportedActors . contains ( actor ) ) { if ( isServer ) { SOAPFaultDetail sfd = new SOAPFaultDetail ( SOAPFaultDetail . BOGUS_ACTOR , messageID , null ) ; SOAPFault sf = new SOAPFault ( FAULT_CODE_SERVER , faultStringServerError , null , sfd ) ; throw new SOAPFaultException ( new Message ( sf ) ) ; } else { throw new SOAPBindingException ( bundle . getString ( "bogusActor" ) ) ; } } if ( mustUnderstand != null && ! mustUnderstand . booleanValue ( ) ) { if ( isServer ) { SOAPFaultDetail sfd = new SOAPFaultDetail ( SOAPFaultDetail . BOGUS_MUST_UNSTND , messageID , null ) ; SOAPFault sf = new SOAPFault ( FAULT_CODE_SERVER , faultStringServerError , null , sfd ) ; throw new SOAPFaultException ( new Message ( sf ) ) ; } else { throw new SOAPBindingException ( bundle . getString ( "bogusMustUnderstand" ) ) ; } } }
checks ' actor ' and ' mustunderstand ' attribute of a header .
