if (!_expire.isPresent() && !_maximumSize.isPresent()) {
cacheBuilder.maximumSize(0);
} else {
if (_expire.isPresent()) {
Duration expire = _expire.get();
cacheBuilder.expireAfterWrite(expire.getQuantity(), expire.getUnit());
}
if (_maximumSize.isPresent()) {
cacheBuilder
.weigher(CachedResponseWeigher.INSTANCE)