question: @ SuppressWarnings ( "unchecked" ) public void registerDefaultDeviceTypes ( ) { final HashMap < String , String > devicesList = DefaultPlatform . getDeviceServiceMap ( ) ; for ( HashMap . Entry < String , String > entry : devicesList . entrySet ( ) ) { String key = entry . getKey ( ) ; String value = entry . getValue ( ) ; try { registerDeviceService ( ( Class < DeviceService > ) Class . forName ( key ) , ( Class < DiscoveryProvider > ) Class . forName ( value ) ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } } }
target:  Registers a commonly-used set of DeviceServices with DiscoveryManager. This method will be called on first call of startDiscovery if no DeviceServices have been registered. - CastDiscoveryProvider + CastService - SSDPDiscoveryProvider + DIALService + DLNAService (limited to LG TVs, currently) + NetcastTVService + RokuService + WebOSTVService + MultiScreenService - ZeroconfDiscoveryProvider + AirPlayService