private static SearchTerm createSearchTerm( MessageListFields searchField, String[] searchValues ) {
SearchTerm[] terms = new SearchTerm[searchValues.length];
for (int i = 0; i < searchValues.length; i++) {
if ( searchField == MessageListFields.SUBJECT ) {
terms[i] = new SubjectTerm( searchValues[i] );
}
else if ( searchField == MessageListFields.FROM ) {
terms[i] = new FromStringTerm( searchValues[i] );
}
else if ( searchField == MessageListFields.TO ) {