code: @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
      public static NsdManager getNsdManager(Context context) {
          return (NsdManager) context.getSystemService(Context.NSD_SERVICE);
      }
docs: Get the {@link android.net.nsd.NsdManager} service for this context.
  @param context the context.
  @return the {@link android.net.nsd.NsdManager}