props.put("bundle-symbolicname", rsaBundle.getSymbolicName());
props.put("bundle-version", rsaBundle.getHeaders().get(Constants.BUNDLE_VERSION));
props.put("cause", rsaEvent.getException());
props.put("import.registration", rsaEvent.getImportReference());
props.put("export.registration", rsaEvent.getExportReference());
EndpointDescription ep = null;
if (rsaEvent.getImportReference() != null) {
ep = rsaEvent.getImportReference().getImportedEndpoint();
}
if (rsaEvent.getExportReference() != null) {
ep = rsaEvent.getExportReference().getExportedEndpoint();
}
if (ep != null) {
props.put("endpoint.service.id", ep.getServiceId());
props.put("endpoint.framework.uuid", ep.getFrameworkUUID());
props.put("endpoint.id", ep.getId());
props.put("objectClass", ep.getInterfaces());
props.put("service.imported.configs", ep.getConfigurationTypes());
Object bindings = ep.getProperties().get("org.osgi.sca.bindings");
if (bindings != null) {
props.put("org.osgi.sca.bindings", bindings);
}
Object config = ep.getProperties().get("org.osgi.sca.config.url");
if (config != null) {
props.put("org.osgi.sca.config.url", config);
}
config = ep.getProperties().get("org.osgi.sca.config.xml");
if (config != null) {
props.put("org.osgi.sca.config.xml", config);
} }
props.put("timestamp", Long.valueOf(System.currentTimeMillis()));
props.put("event", rsaEvent);