implements equals and hashCode of BackendInstanceImpl class.