code: public static Endpoint create(final String domainId, final String name, final String password, 
              final boolean enabled) throws AppPlatformException, ParseException, Exception {
          return create(domainId, name, password, null, enabled);
      }
docs: Convenience factory method for Endpoint, returns a created Endpoint object from a name
  @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
  @return the created endpoint.
  @throws AppPlatformException API Exception
  @throws ParseException Error parsing data
  @throws Exception error