support WriteJavaBeanAsArray