code: @Override
      public <S> S getService(@NonNull Class<S> type) {
          Object service = mServices.get(type);
          if (service == null) {
              return null;
          }
          return type.cast(service);
      }
docs: {@inheritDoc}