public void accept(String systemId,InterfaceVersion interfaceVersion) throws PDUStringException, IllegalStateException, IOException {
  StringValidator.validateString(systemId,StringParameter.SYSTEM_ID);
  lock.lock();
  try {
    if (!done) {
      done=true;
      try {
        responseHandler.sendBindResp(systemId,interfaceVersion,bindType,originalSequenceNumber);
      }
  finally {
        condition.signal();
      }
    }
 else {
      throw new IllegalStateException("Response already initiated");
    }
  }
  finally {
    lock.unlock();
  }
  done=true;
}

public void accept ( String systemId , InterfaceVersion interfaceVersion ) throws PDUStringException , IllegalStateException , IOException { StringValidator . validateString ( systemId , StringParameter . SYSTEM_ID ) ; lock . lock ( ) ; try { if ( ! done ) { done = true ; try { responseHandler . sendBindResp ( systemId , interfaceVersion , bindType , originalSequenceNumber ) ; } finally { condition . signal ( ) ; } } else { throw new IllegalStateException ( "Response already initiated" ) ; } } finally { lock . unlock ( ) ; } done = true ; }
accept the bind request . the provided interface version will be put into the optional parameter sc_interface_version in the bind response message .
