code: @Override
      protected final void checkIntegrity () throws InternetSCSIException {
  
          String exceptionMessage;
          do {
              Utils.isReserved(logicalUnitNumber);
  
              if (reasonCode == LogoutReasonCode.CLOSE_SESSION && connectionID != 0) {
                  exceptionMessage = "The CID field must be zero, if close session is requested.";
                  break;
              }
  
              if (protocolDataUnit.getBasicHeaderSegment().getTotalAHSLength() != 0) {
                  exceptionMessage = "TotalAHSLength must be 0!";
                  break;
              }
  
              if (protocolDataUnit.getBasicHeaderSegment().getDataSegmentLength() != 0) {
                  exceptionMessage = "DataSegmentLength must be 0!";
                  break;
              }
  
              // message is checked correctly
              return;
          } while (false);
  
          throw new InternetSCSIException(exceptionMessage);
  
      }
docs: {@inheritDoc}