code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.ssCode == null)
              throw new MAPException("Error while encoding " + _PrimitiveName + ": ssCode required.");
  
          if (this.callBarringFeatureList == null)
              throw new MAPException("Error while encoding " + _PrimitiveName + ": callBarringFeatureList required.");
  
          if (this.callBarringFeatureList.size() < 1 || this.callBarringFeatureList.size() > 32) {
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + ": Parameter callBarringFeatureList size must be from 1 to 32, found: "
                      + this.callBarringFeatureList.size());
          }
  
          try {
  
              ((SSCodeImpl) this.ssCode).encodeAll(asnOs);
  
              asnOs.writeTag(Tag.CLASS_UNIVERSAL, false, Tag.SEQUENCE);
              int pos = asnOs.StartContentDefiniteLength();
              for (ExtCallBarringFeature featureItem : this.callBarringFeatureList) {
                  ((ExtCallBarringFeatureImpl) featureItem).encodeAll(asnOs);
              }
              asnOs.FinalizeContent(pos);
  
              if (this.extensionContainer != null)
                  ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOs);
          } catch (AsnException e) {
              throw new MAPException("AsnException when encoding " + _PrimitiveName + ": " + e.getMessage(), e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeData (org.mobicents.protocols.asn.AsnOutputStream)