code: private void appendFactoryId(JMessage<?> message) {
          writer.appendln("@Override")
                .appendln("public int getFactoryId() {")
                .begin()
                //TODO: The factory should be file unqiue. ID is struct unique so for id we want to define several constants.
                // so for content_cms we want the factory name ContentCmsFactory or ContentCmsPortableFactory.
                // as well as some way to count this up for each struct that has a hazelcast_portable tag in it.
                .formatln("return %s.%s;",
                          getHazelcastFactory(message.descriptor()),
                          HazelcastPortableProgramFormatter.FACTORY_ID)
                .end()
                .appendln("}")
                .newline();
      }
docs: Method to append get factory id from hazelcast_portable.
  
  @param message JMessage with the information.
  <pre>
  {@code
  public int getFactoryId() {
  return ContentCmsPortableFactory.FACTORY_ID;
  }
  }
  </pre>