add bean writer map&factory