public boolean registerCollection(CollectionSchema.MessageFactory factory)
    {
        return null == collectionMapping.putIfAbsent(factory.typeClass()
                .getName(), factory);
    }
Registers a collection. Returns true if registration is successful.
protostuff-runtime/src/main/java/io/protostuff/runtime/DefaultIdStrategy.java