} else if (lineTest.contains("/STMTTRN")) {
if(accountId != 0){
Operation operation = getRelatedOperation(bankOperationNumber, description, value, date);
if(operation != null) {
if(!operation.isOperationLinked()) {
system.execute(new AddExtractBankItem(bankOperationNumber, description, value, date, operation, accountId));
}
} else {
Incoming incoming = getRelatedIncoming(bankOperationNumber, description, value, date);
if(incoming != null) {
system.execute(new AddExtractBankItem(bankOperationNumber, description, value, date, incoming, accountId));
} else {
Expenditure expenditure = getRelatedExpenditure(bankOperationNumber, description, value, date);
if(expenditure != null){
system.execute(new AddExtractBankItem(bankOperationNumber, description, value, date, expenditure, accountId));
} else {
system.execute(new AddExtractBankItem(bankOperationNumber, description, value, date, accountId));
}
}
}
} else {
setErrorMessage("Extrato escolhido n�o cont�m o padr�o utilizado pelo Gerente Digital.");