}
protected JavaBeanSerializer getJavaBeanSerializer(final Class<?> currentClass) {
JavaBeanSerializer beanSerializer = null;
{
ObjectSerializer serializer = serializeConfig.getObjectWriter(currentClass);
if (serializer instanceof JavaBeanSerializer) {
beanSerializer = (JavaBeanSerializer) serializer;
} else if (serializer instanceof ASMJavaBeanSerializer) {
beanSerializer = ((ASMJavaBeanSerializer) serializer).getJavaBeanSerializer();
}