helper.isPeersNotFoundError(lastLogMsg))
{
LOG.log(Level.WARNING, "Throwing peer not found error. "+
"Last Log Msg: "+lastLogMsg);
// Assume that this is a peer not found error.
throw new PeerNotFoundException(errorMsg);
}
else
{
LOG.log(Level.SEVERE, "Throwing ApplicationException.");
throw ae;