code: public static Endpoint create(final BandwidthClient client, final String domainId, final String name, final String password, 
              final String description, final boolean enabled, final String applicationId) throws AppPlatformException, ParseException, Exception {
          assert (domainId != null);
          assert (name != null);
          assert (password != null);
          
          final Map<String, Object> params = new HashMap<String, Object>();
          params.put("name", name);
          params.put("enabled", Boolean.toString(enabled));
          final Map<String, String> credentials = new HashMap<String, String>();
          credentials.put("password", password);
          params.put("credentials", credentials);
          if(description != null) {
              params.put("description", description);
          }
          if(applicationId != null) {
              params.put("applicationId", applicationId);
          }
          return create(client, domainId, params);
      }
docs: Convenience factory method for Endpoint, returns a created Endpoint object from a name
  @param client the bandwidth client configuration.
  @param domainId the domain id.
  @param name the endpoint name.
  @param password the endpoint password
  @param enabled indicates if the endpoint is active or not
  @param description the endpoint description.
  @param applicationId the applicationId.
  @return the created endpoint.
  @throws AppPlatformException API Exception
  @throws ParseException Error parsing data
  @throws Exception error