private ExportRegistration createErrorExportRegistration(
ServiceReference serviceReference,
Map<String, Object> overridingProperties, String errorMessage,
SelectContainerException exception) {
ContainerTypeDescription ctd = exception.getContainerTypeDescription();
overridingProperties
.put(org.osgi.service.remoteserviceadmin.RemoteConstants.ENDPOINT_ID,
"noendpoint"); //$NON-NLS-1$
overridingProperties
.put(org.osgi.service.remoteserviceadmin.RemoteConstants.SERVICE_IMPORTED_CONFIGS,
(ctd == null) ? "noconfig" : ctd.getName()); //$NON-NLS-1$
return new ExportRegistration(exception, new EndpointDescription(
serviceReference, overridingProperties));
}