Use a more idiomatic one?
```java
return Enums.getIfPresent(ContainerFormat .class,
    checkNotNull(containerFormat, "containerFormat").toUpperCase()).or(UNRECOGNIZED);
```