使用Google Guava的Preconditions进行入参校验

NoSuchKey