code: public static Endpoint get(final BandwidthClient client, final String domainId, final String endpointId) throws ParseException, Exception {
          assert(domainId != null);
          assert(endpointId != null);
          final String endpointsUri =  String.format(client.getUserResourceUri(BandwidthConstants.ENDPOINTS_URI_PATH), domainId)+ "/"+endpointId;
          final JSONObject jsonObject = toJSONObject(client.get(endpointsUri, null));
          return new Endpoint(client, jsonObject);
      }
docs: Convenience method to get information about a specific Endpoint. Returns a Endpoint object given its id.
  @param client the user client.
  @param domainId the domain id.
  @param endpointId the Endpoint id.
  @return information about a specific Endpoint
  @throws ParseException Error parsing data
  @throws Exception error