return null;
}
catch (Exception ex)
{
exceptionSeen = true;
<BUG>}
if (!exceptionSeen)</BUG>
{
<BUG>counter = getCounter(messageId, null, false);
</BUG>
tooMany = counter != null && counter.get() > maxRedeliveryCount;

return null;
}
catch (Exception ex)
{
exceptionSeen = true;
}
try
{
store.lockEntry(messageId);
if (!exceptionSeen)
{
counter = findCounter(messageId);
