Buggy code:
public synchronized ServiceReference getImportedService ( ) { } public synchronized EndpointDescription getImportedEndpoint ( ) { } synchronized void close ( ) { } public synchronized String toString ( ) { } } private void publishEvent ( RemoteServiceAdmin . RemoteServiceAdminEvent event , EndpointDescription endpointDescription ) { } private void postEvent ( RemoteServiceAdmin . RemoteServiceAdminEvent event , EndpointDescription endpointDescription ) { } private String [ ] getSignersForBundle ( Bundle bundle ) { } private void publishExportEvent ( RemoteServiceAdmin . ExportRegistration exportRegistration ) { } private void publishImportEvent ( RemoteServiceAdmin . ImportRegistration importRegistration ) { } private void closeRemoteServiceAdminListenerTracker ( ) { } private RemoteServiceAdminListener [ ] getListeners ( EndpointPermission perm ) { } private RemoteServiceAdmin . ExportEndpoint findExistingExportEndpoint ( ServiceReference serviceReference , ID containerID ) { } private EventAdmin getEventAdmin ( ) { } private void postRemoteServiceAdminEvent ( String topic , Dictionary eventProperties ) { } private void closeEventAdminTracker ( ) { } private void closePackageAdminTracker ( ) { } private Object consumerContainerSelectorTrackerLock = new Object ( ) ; private ServiceTracker consumerContainerSelectorTracker ; private void closeConsumerContainerSelectorTracker ( ) { } private Object hostContainerSelectorTrackerLock = new Object ( ) ; private ServiceTracker hostContainerSelectorTracker ; private void closeHostContainerSelectorTracker ( ) { } protected IHostContainerSelector getHostContainerSelector ( ) { } protected IConsumerContainerSelector getConsumerContainerSelector ( ) { } private Version getPackageVersion ( ServiceReference serviceReference , String serviceInterface , String packageName ) { } private Map < String , Object > createExportEndpointDescriptionProperties ( ServiceReference serviceReference , Map < String , Object > overridingProperties , String [ ] exportedInterfaces , String [ ] serviceIntents , IRemoteServiceContainer rsContainer ) { IContainer container = rsContainer . getContainer ( ) ; ID containerID = container . getID ( ) ; Map < String , Object > endpointDescriptionProperties = new TreeMap < String , Object > ( String . CASE_INSENSITIVE_ORDER ) ; endpointDescriptionProperties . put ( Constants . OBJECTCLASS , exportedInterfaces ) ; for ( int i = 0 ; i < ( exportedInterfaces . length ) ; i ++ ) { String packageName = getPackageName ( exportedInterfaces [ i ] ) ; String packageVersionKey = ( RemoteConstants . ENDPOINT_PACKAGE_VERSION_ ) + packageName ; String packageVersion = ( ( String ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , packageVersionKey ) ) ) ; if ( packageVersion == null ) { Version version = getPackageVersion ( serviceReference , exportedInterfaces [ i ] , packageName ) ; if ( ( version != null ) && ( ! ( version . equals ( Version . emptyVersion ) ) ) ) packageVersion = version . toString ( ) ; } if ( packageVersion != null ) endpointDescriptionProperties . put ( packageVersionKey , packageVersion ) ; } String endpointId = ( ( String ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , ENDPOINT_ID ) ) ) ; if ( endpointId == null ) endpointId = containerID . getName ( ) ; endpointDescriptionProperties . put ( ENDPOINT_ID , endpointId ) ; Long serviceId = ( ( Long ) ( serviceReference . getProperty ( Constants . SERVICE_ID ) ) ) ; endpointDescriptionProperties . put ( Constants . SERVICE_ID , serviceId ) ; String frameworkId = ( ( String ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , ENDPOINT_FRAMEWORK_UUID ) ) ) ; if ( frameworkId == null ) frameworkId = Activator . getDefault ( ) . getFrameworkUUID ( ) ; endpointDescriptionProperties . put ( ENDPOINT_FRAMEWORK_UUID , frameworkId ) ; String [ ] remoteConfigsSupported = getSupportedConfigs ( container ) ; if ( remoteConfigsSupported != null ) endpointDescriptionProperties . put ( REMOTE_CONFIGS_SUPPORTED , remoteConfigsSupported ) ; endpointDescriptionProperties . put ( SERVICE_IMPORTED_CONFIGS , remoteConfigsSupported ) ; <START_BUG> String [ ] intents = ( ( String [ ] ) ( PropertiesUtil . getPropertyValue ( null , overridingProperties , SERVICE_INTENTS ) ) ) ; <END_BUG> if ( intents == null ) intents = serviceIntents ; if ( intents != null ) endpointDescriptionProperties . put ( SERVICE_INTENTS , intents ) ; String [ ] remoteIntentsSupported = getSupportedIntents ( container ) ; if ( remoteIntentsSupported != null ) endpointDescriptionProperties . put ( REMOTE_INTENTS_SUPPORTED , remoteIntentsSupported ) ; String idNamespace = containerID . getNamespace ( ) . getName ( ) ; endpointDescriptionProperties . put ( ENDPOINT_CONTAINER_ID_NAMESPACE , idNamespace ) ; String connectTarget = ( ( String ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , ENDPOINT_CONNECTTARGET_ID ) ) ) ; if ( connectTarget == null ) { ID connectedID = rsContainer . getContainer ( ) . getConnectedID ( ) ; if ( ( connectedID != null ) && ( ! ( connectedID . equals ( containerID ) ) ) ) connectTarget = connectedID . getName ( ) ; } if ( connectTarget != null ) endpointDescriptionProperties . put ( ENDPOINT_CONNECTTARGET_ID , connectTarget ) ; String [ ] idFilter = ( ( String [ ] ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , ENDPOINT_IDFILTER_IDS ) ) ) ; if ( ( idFilter != null ) && ( ( idFilter . length ) > 0 ) ) endpointDescriptionProperties . put ( ENDPOINT_IDFILTER_IDS , idFilter ) ; String rsFilter = ( ( String ) ( PropertiesUtil . getPropertyValue ( serviceReference , overridingProperties , ENDPOINT_REMOTESERVICE_FILTER ) ) ) ; if ( rsFilter != null ) endpointDescriptionProperties . put ( ENDPOINT_REMOTESERVICE_FILTER , rsFilter ) ; return endpointDescriptionProperties ; } private Map < String , Object > copyNonReservedProperties ( ServiceReference serviceReference , Map < String , Object > overridingProperties , Map < String , Object > target ) { } private ContainerTypeDescription getContainerTypeDescription ( IContainer container ) { } private String [ ] getSupportedConfigs ( IContainer container ) { } private String [ ] getImportedConfigs ( IContainer container , String [ ] exporterSupportedConfigs ) { } private String [ ] getSupportedIntents ( IContainer container ) { } private ID [ ] getIDFilter ( EndpointDescription endpointDescription , ID endpointID ) { } private String getRemoteServiceFilter ( EndpointDescription endpointDescription ) { } private RemoteServiceAdmin . ImportEndpoint createAndRegisterProxy ( EndpointDescription endpointDescription , IRemoteServiceContainer rsContainer , IRemoteServiceReference selectedRsReference ) throws Exception { }

Fix:
Object intents = PropertiesUtil . getPropertyValue ( null , overridingProperties , SERVICE_INTENTS ) ;