@Override
public JsonSerializer<?> findSerializer(SerializationConfig config,
JavaType type, BeanDescription beanDesc, BeanProperty property)
{
if (Element.class.isAssignableFrom(type.getRawClass())) {
return new DomElementJsonSerializer();
}
return null;
}