private void checkKey(final String key) {
        if ((key == null) || (key.trim().length() == 0) || (containsWhitespace(key))) {
            throw new IllegalArgumentException("Wrong key!");
        }
    }