Added setEndpointAttributs