code: private GVRCursorController getUniqueControllerId(int deviceId) {
          GVRCursorController controller = controllerIds.get(deviceId);
          if (controller != null) {
              return controller;
          }
          return null;
      }
docs: returns null if no device is found.