code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
          if (this.locationEstimateType == null) {
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + " the mandatory parameter LocationEstimateType is not defined");
          }
  
          try {
              asnOs.writeInteger(Tag.CLASS_CONTEXT_SPECIFIC, _TAG_LOCATION_ESTIMATE_TYPE, this.locationEstimateType.getType());
          } catch (IOException e) {
              throw new MAPException("IOException when encoding parameter " + _PrimitiveName + ": ", e);
          } catch (AsnException e) {
              throw new MAPException("AsnException when encoding parameter " + _PrimitiveName + ": ", e);
          }
  
          if (this.deferredLocationEventType != null) {
              ((DeferredLocationEventTypeImpl) this.deferredLocationEventType).encodeAll(asnOs, Tag.CLASS_CONTEXT_SPECIFIC,
                      _TAG_DEFERRED_LOCATION_EVET_TYPE);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.api.primitives.MAPAsnPrimitive#encodeData
  (org.mobicents.protocols.asn.AsnOutputStream)