public <T> boolean registerDelegate(String className, Delegate<T> delegate)
    {
        return null == delegateMapping.putIfAbsent(className, new HasDelegate<T>(delegate, this));
    }
Registers a delegate by specifying the class name. Returns true if registration is successful.
protostuff-runtime/src/main/java/io/protostuff/runtime/DefaultIdStrategy.java