Can you avoid this logic by giving a default value to the builder, e.g.,

```java
CacheBuilder.newBuilder().build(new CacheLoader<HttpCommand, Integer>() {
   @Override
   public Integer load(HttpCommand command) {
      return 1;
   }
});
```