Fixed bug in CAPIConnection::beforeSumit method

Fixed bug in CAPIConnection::beforeSumit method