support writeJavaBeanAsArray