package org.rhq.msg.common;

/**
 * Identifies a message that has been sent over the message bus.
 */
public class MessageId {
    private final String id;

    public MessageId(String id) {
        if (id == null || id.length() == 0) {
            throw new NullPointerException("ID cannot be null or empty");
        }
        this.id = id;
    }

    public String getName() {
        return id;
    }

    @Override
    public String toString() {
        return id;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof MessageId)) {
            return false;
        }
        MessageId other = (MessageId) obj;
        return id.equals(other.id);
    }
}

@@ -368,12 +368,10 @@
  get
-Name
+Id
 () %7B

opp.. method should be getId not getName