Added type information to Endpoint. Fixed listerner propagation bug in AbstractEndpoint