@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        LinkingAgent other = (LinkingAgent) obj;
        if (linkingAgentIdentifier == null) {
            if (other.linkingAgentIdentifier != null)
                return false;
        } else if (!linkingAgentIdentifier.equals(other.linkingAgentIdentifier))
            return false;
        if (linkingAgentRole == null) {
            if (other.linkingAgentRole != null)
                return false;
        } else if (!linkingAgentRole.equals(other.linkingAgentRole))
            return false;
        return true;
    }