add code at build new license comment. check the map first to make sure
there is at least one sub document.

Signed-off-by: gling07 <linggang7@gmail.com>
Merge remote-tracking branch 'github/develop' into develop