bugfix: getEndpoint() duplicate endpoints.
bugfix: getEndpoint() duplicate endpoints.

Should also check for equality of ports.

Change-Id: I7a61085d03f2daee2827f41387628c52afda47fc

jchris/indexing,jchris/indexing,jchris/indexing,jchris/indexing