} if (endpoint.getPort() == null && GraphMLConstants.PORT_NAME.equals(name)) {
endpoint.setPort(value);
} if (endpoint.getNode() == null && GraphMLConstants.NODE_NAME.equals(name)) {
endpoint.setNode(value);
} if (GraphMLConstants.TYPE_NAME.equals(name)) {
EndpointType t = endpointTypeMap.get(value);
if( t == null ) {
t = EndpointType.UNDIR;
}
endpoint.setEndpointType(t);
} else {