Well, I found the solution:
wire.getStart().getId() will return a String.
This String is looking like the following:
CONNECTORXXX-22
CONNECTOR of course is the object, XXX is the Name of the Object and 22 is the Pin (Cavity)
So you just have to get the ID from the HarnessWireEnd and split it