code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.cellGlobalIdOrServiceAreaIdFixedLength == null && this.laiFixedLength == null)
              throw new MAPException(
                      "Error while encoding the CellGlobalIdOrServiceAreaIdOrLAI: both cellGlobalIdOrServiceAreaIdFixedLength and laiFixedLength are not defined");
  
          if (this.cellGlobalIdOrServiceAreaIdFixedLength != null) {
              ((CellGlobalIdOrServiceAreaIdFixedLengthImpl) this.cellGlobalIdOrServiceAreaIdFixedLength).encodeData(asnOs);
          } else {
              ((LAIFixedLengthImpl) this.laiFixedLength).encodeData(asnOs);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData(org.mobicents.protocols.asn.AsnOutputStream)