code: public void encodeData(AsnOutputStream asnOs) throws MAPException {
  
          if (this.maximumentitledPriority < 0 || this.maximumentitledPriority > 15)
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + ": maximumentitledPriority required value from 0 to 15.");
  
          if (this.defaultPriority < 0 || this.defaultPriority > 15)
              throw new MAPException("Error while encoding " + _PrimitiveName
                      + ": maximumentitledPriority required value from 0 to 15.");
  
          try {
              asnOs.writeInteger(this.maximumentitledPriority);
  
              asnOs.writeInteger(this.defaultPriority);
  
              if (this.extensionContainer != null)
                  ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOs);
          } catch (IOException e) {
              throw new MAPException("IOException when encoding " + _PrimitiveName + ": " + e.getMessage(), e);
          } 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)