/*
Set the value of the ReplyReliability field in the message header.

Javadoc description supplied by SIBusMessage interface.
496943
@Override
    public final void setReplyReliability(Reliability value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReplyReliability", value);
        if (value != null) {
            /* Get the int value of the Reliability instance and set it in the field */
            getApi().setField(JsApiAccess.REPLYRELIABILITY_VALUE, value.toByte());
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "setReplyReliability", "NullPointerException");
            throw new NullPointerException();
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReplyReliability");
    }
772465
protected Reliability getReplyReliability() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getReplyReliability");
        Reliability result = null;
        if (replyReliabilityByte != -1) {
            result = Reliability.getReliability(replyReliabilityByte);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getReplyReliability", result);
        return result;
    }
1062294
@Override
    public final void setJmsReplyTo(byte[] value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setJmsReplyTo", value);
        /* There is no need to take a copy because the JMS API layer will never */
        /* change the byte array passed in. */
        getHdr2().setField(JsHdr2Access.JMSREPLYTO_DATA, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setJmsReplyTo");
    }
99710
public void setValue(final Object value) {
        if (!(value instanceof Serializable)) {
            throw new IllegalArgumentException("The value muste be a instance of " + Serializable.class.getName());
        }
        this.value = (Serializable) value;
    }
827921
@Override
    public final void setReportFeedback(Integer value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportFeedback", value);
        if (value != null) {
            // if the value fits in a byte then we set the value both into the byte and integer
            // versions of the feedback field. This may or may not be a redundant operation.
            // If the message is backed by an MQ encapsulation then we end up setting the value
            // in the real MQMD twice - but if its native JMF we need to set the value in both
            // fields so that if we send the message off to an old style client who uses the
            // old compatible schema, they can still read the feedback value from the byte field.
            if ((value.intValue() >= Byte.MIN_VALUE) && (value.intValue() <= Byte.MAX_VALUE)) { // 254045
                getApi().setField(JsApiAccess.REPORTFEEDBACK_VALUE, Byte.valueOf(value.byteValue()));
            }
            getApi().setField(JsApiAccess.REPORTFEEDBACKINT_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTFEEDBACK, JsApiAccess.IS_REPORTFEEDBACK_UNSET);
            getApi().setChoiceField(JsApiAccess.REPORTFEEDBACKINT, JsApiAccess.IS_REPORTFEEDBACKINT_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportFeedback");
    }
259892
final void setCompatibilityWrapperToSelf() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            JmfTr.entry(this, tc, "setCompatibilityWrapperToSelf");

        synchronized (getMessageLockArtefact()) {
            compatibilityWrapperOrSelf = this;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            JmfTr.exit(this, tc, "setCompatibilityWrapperToSelf");
    }
153055
@Override
    public final void setReportDiscardMsg(Boolean value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportDiscardMsg", value);
        if (value != null) {
            getApi().setField(JsApiAccess.REPORTDISCARDMSG_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTDISCARDMSG, JsApiAccess.IS_REPORTDISCARDMSG_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportDiscardMsg");
    }
445707
@Override
    public final void uncheckedSetReplyReliability(Reliability value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "uncheckedSetReplyReliability", value);
        if (value != null) {
            getApi().setField(JsApiAccess.REPLYRELIABILITY_VALUE, value.toByte());
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPLYRELIABILITY, JsApiAccess.IS_REPLYRELIABILITY_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "uncheckedSetReplyReliability");
    }
228381
@Override
    public final void setReportException(Byte value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportException", value);
        if (value != null) {
            getApi().setField(JsApiAccess.REPORTEXCEPTION_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTEXCEPTION, JsApiAccess.IS_REPORTEXCEPTION_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportException");
    }
981675
public Notification setFieldValue(String field, @Nullable String value) {
    fields.put(field, value);
    return this;
  }
366042
public static void setFieldOnSuper(Object messageArgument, Class senderClass, Object receiver, String messageName) throws Throwable {
        try {
            if (receiver instanceof Class) {
                InvokerHelper.setAttribute(receiver, messageName, messageArgument);
            } else {
                MetaClass mc = ((GroovyObject) receiver).getMetaClass();
                mc.setAttribute(senderClass, receiver, messageName, messageArgument, true, true);
            }
        } catch (GroovyRuntimeException gre) {
            throw unwrap(gre);
        }
    }
769063
public final void setGuaranteedValueRequestedOnly(boolean value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGuaranteedValueRequestedOnly", Boolean.valueOf(value));
        getHdr2().setBooleanField(JsHdr2Access.GUARANTEEDVALUE_SET_REQUESTEDONLY, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGuaranteedValueRequestedOnly");
    }
1196655
public void setResponse(Object response)
    {
        ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get();
        
        if (ctx == null)
        {
            throw new UnsupportedOperationException();
        }
        
        ctx.setResponse(response);
    }
1114788
@Override
    public final void setReportNAN(Boolean value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReportNAN", value);
        if (value != null) {
            getApi().setField(JsApiAccess.REPORTNAN_VALUE, value);
        }
        else {
            getApi().setChoiceField(JsApiAccess.REPORTNAN, JsApiAccess.IS_REPORTNAN_UNSET);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReportNAN");
    }
871842
@Override
    public final void setReplyPriority(int value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setReplyPriority", Integer.valueOf(value));
        if ((value >= MfpConstants.MIN_PRIORITY) && (value <= MfpConstants.MAX_PRIORITY)) {
            getApi().setIntField(JsApiAccess.REPLYPRIORITY_VALUE, value);
        }
        else {
            IllegalArgumentException e = new IllegalArgumentException(Integer.toString(value));
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "setReplyPriority", e);
            throw e;
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setReplyPriority");
    }
1145991
public final void setGuaranteedProtocolType(ProtocolType value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGuaranteedProtocolType", value);
        getHdr2().setField(JsHdr2Access.GUARANTEED_SET_PROTOCOLTYPE, value.toByte());
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGuaranteedProtocolType");
    }
992061
public void set(MessageMap value) {
    if (array != null)
      array[value.multiChoice.intValue()] = value;
    else
      hashtable.put(value.multiChoice, value);
  }