private static void validateName(String name) {
    if (name == null || "".equals(name)) {
      throw new IllegalArgumentException("HashAlgorithm name should be"
          + "provided in order to perform the lookup: either NULL or "
          + "empty string has been provided");
    }
  }
Validates name of the algorithm. A non-empty name should be provided An
{@link IllegalArgumentException} is being thrown in case of incorrect name

@param name a name to validate
src/main/java/net/spy/memcached/HashAlgorithmRegistry.java