I add some comments to help understand EndPointSample.java