Update SampleEndpoint.java

change method name to match blog