@Override
    public ProfileId getId() {
      if (id == null) {
        throw new IllegalStateException("profile id not yet initialized");
      }
      return id;
    }
for internal use, required for DataSerializer.readObject
geode-core/src/main/java/org/apache/geode/internal/cache/GridAdvisor.java