drop unused format, type arguments
drop unused format argument
fix doc comment and add Serializer type hint
change ant script
extract initWriter to super class
clean up doc comment