code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.cliRestrictionOption == null && this.overrideCategory == null)
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + ": missing cliRestrictionOption and overrideCategory.");
  
          if (this.cliRestrictionOption != null && this.overrideCategory != null)
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + ": both cliRestrictionOption and overrideCategory are defined.");
  
          try {
  
              if (this.cliRestrictionOption != null) {
                  asnOs.writeIntegerData(this.cliRestrictionOption.getCode());
              } else {
                  asnOs.writeIntegerData(this.overrideCategory.getCode());
              }
          } catch (IOException e) {
              throw new MAPException("IOException when encoding " + _PrimitiveName + ": " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeData (org.mobicents.protocols.asn.AsnOutputStream)