code: public String registerSelf(
        ServiceRecord record,
        boolean deleteTreeFirst) throws IOException {
      selfRegistrationPath =
          putService(user, jstormServiceClass, instanceName, record, deleteTreeFirst);
      setSelfRegistration(record);
      return selfRegistrationPath;
    }
docs: Add a service under a path for the current user
  @param record service record
  @param deleteTreeFirst perform recursive delete of the path first
  @return the path the service was created at
  @throws IOException