try {
pusher = pusherFactory.newPusher(connectorName);
this.take(document);
} catch (PushException pe) {
LOGGER.log(Level.SEVERE, "DocumentAcceptor failed to get Pusher", e);
throw new DocumentAcceptorException("Failed to get Pusher", e);
}
} else {
throw e;
}
} catch (PushException e) {
LOGGER.log(Level.SEVERE, "DocumentAcceptor failed to take document", e);
throw new DocumentAcceptorException("Failed to take document", e);
} catch (FeedException e) {
LOGGER.log(Level.SEVERE, "DocumentAcceptor failed to take document", e);
throw new DocumentAcceptorException("Failed to take document", e);
} catch (RepositoryException e) {
LOGGER.log(Level.WARNING, "DocumentAcceptor failed to take document", e);
throw e;
} catch (InterruptedException e) {
// Woke from sleep. Just return.