public ArgumentBuilder withNamedArgument(final String name, final String value) {

        // Check sanity
        Validate.notEmpty(name, "name");

        // Only add a named argument if the value is non-empty.
        if (value != null && !value.trim().isEmpty()) {
            withNamedArgument(true, name, value.trim());
        }

        // All done.
        return this;
    }
public ArgumentBuilder withNamedArgument ( final String name , final String value ) { Validate . notEmpty ( name , "name" ) ; if ( value != null && ! value . trim ( ) . isEmpty ( ) ) { withNamedArgument ( true , name , value . trim ( ) ) ; } return this ; }
Convenience form for the {@code withNamedArgument} method, where a named argument is only added
if the value is non-null and non-empty after trimming.

@param name  The name of the namedArgument to add. Cannot be empty.
@param value The value of the namedArgument to add.
@return This ArgumentBuilder, for chaining.
@see #withNamedArgument(boolean, String, String)