private RuntimeEnumIO getRuntimeEnumIO(Class<?> enumClass)
    {
        RuntimeEnumIO reio = enumMapping.get(enumClass);
        if (reio == null)
        {
            reio = new RuntimeEnumIO();

            final RuntimeEnumIO existing = enumMapping.putIfAbsent(enumClass, reio);
            if (existing != null)
                reio = existing;
            else
            {
                reio.eio = EnumIO.newEnumIO(enumClass, this);
                int id = enumId.getAndIncrement();
                enums.set(id, reio);

                // commit
                reio.id = id;
            }
        }

        return reio;
    }
Register a {@link Delegate} and assign an id.
<p>
Delegate ids start at 1.
protostuff-runtime-registry/src/main/java/io/protostuff/runtime/IncrementalIdStrategy.java