code: private void getMultipleValues(Method method, Object object, Map<String, String> map)
     {
        try
        {
           int index = 1;
           while (true)
           {
              Object value = filterValue(method.invoke(object, Integer.valueOf(index)));
              if (value != null)
              {
                 map.put(getPropertyName(method, index), String.valueOf(value));
              }
              ++index;
           }
        }
        catch (Exception ex)
        {
           // Reached the end of the valid indexes
        }
     }
docs: Retrieve multiple properties.
  
  @param method method definition
  @param object target object
  @param map parameter values