corrigindo connection implements serializable