namePattern = searchTxt.getText( );  if ( namePattern != null )
if ( namePattern.lastIndexOf( '%' ) == -1 )
	private String getTailoredSearchText( String namePattern )	{		if ( searchTxt.getText( ).length( ) > 0 )		{			namePattern = searchTxt.getText( );			// Add the % by default if there is no such pattern			if ( namePattern != null )			{				if ( namePattern.lastIndexOf( '%' ) == -1 )				{					namePattern = namePattern + "%";				}			}		}		return namePattern;	}