public StringClauses append(String key, String clause) {
        Validate.notNull(StringUtil.trimToNull(key), "key must be a non-null, non-empty value");

        key = StringUtil.trimToEmpty(key).toLowerCase();
        clause = StringUtil.trimToEmpty(clause);

        if (clauses.containsKey(key)) {
            throw new IllegalArgumentException("Cannot add clause with key '" + key + "' because it is already defined");
        }
        clauses.put(key, clause.trim());
        return this;
    }
public StringClauses append ( String key , String clause ) { Validate . notNull ( StringUtil . trimToNull ( key ) , "key must be a non-null, non-empty value" ) ; key = StringUtil . trimToEmpty ( key ) . toLowerCase ( ) ; clause = StringUtil . trimToEmpty ( clause ) ; if ( clauses . containsKey ( key ) ) { throw new IllegalArgumentException ( "Cannot add clause with key '" + key + "' because it is already defined" ) ; } clauses . put ( key , clause . trim ( ) ) ; return this ; }
Adds a new clause at the end of the list with the given key.