code: protected Object getInstantiatedClass(String query) {
          if (query.equals(Constants.UIAUTOMATOR_UIDEVICE)) {
              return device;
          }
          return null;
      }
docs: Implementation of getInstantiatedClass that returns a UiDevice if one is requested
  @param query
  @return