RemoteServiceAdminEvent rsaEvent =
new RemoteServiceAdminEvent(RemoteServiceAdminEvent.EXPORT_REGISTRATION, source, registration
.getExportReference(), registration.getException());
EventAdmin eventAdmin = getEventAdmin();
if (eventAdmin != null) {
eventAdmin.postEvent(wrap(rsaEvent));
}
for (Object listener : listeners.getServices()) {
RemoteServiceAdminListener rsaListener = (RemoteServiceAdminListener)listener;
rsaListener.remoteAdminEvent(rsaEvent);
}