throw new Error(e);
}
if (references != null && !references.isEmpty()) {
GeronimoApplicationEvent event = new GeronimoApplicationEvent(application, state);
for (ServiceReference<AriesApplicationListener> reference : references) {
AriesApplicationListener listener = bundleContext.getService(reference);
if (listener != null) {
try {
listener.applicationChanged(event);
} catch (Exception e) {
LOG.debug("Error calling AriesApplicationListener", e);
} finally {
bundleContext.ungetService(reference);
}