Added WriteEndpoints.java