code: private static List<String> restoreList(String propertyName, 
                                              Object state) {
  
          if (state == null) {
              return null;
          }
  
          List<String> list = null;
  
          if (state instanceof String) {
              list = toSingletonList(propertyName, (String)state);
          } else if (state instanceof String[]) {
              list = Collections.unmodifiableList(Arrays.asList((String[])state));
          }
  
          return list;
      }
docs: (multiple elements)