code: @NullSafe
    public static Map<String, String> fromAssociativeArray(String[] associativeArray) {
  
      Map<String, String> map = new HashMap<>(nullSafeLength(associativeArray));
  
      int index = 0;
  
      for (String element : nullSafeArray(associativeArray, String.class)) {
  
        Assert.hasText(element, "Entry [%s] at index [%d] must be specified", element, index);
  
        String[] entry = element.split("=");
  
        Assert.isTrue(entry.length == 2, "Entry [%s] at index [%d] must have both a key and a value", element, index);
  
        String key = StringUtils.trim(entry[0]);
        String value = StringUtils.trim(entry[1]);
  
        map.put(key, value);
        index++;
      }
  
      return map;
    }
docs: Converts the given associative array into a {@link Map}.
  
  @param associativeArray associate array to convert into a {@link Map}.
  @return a {@link Map} populated with the key/value pairs in the associate array.
  @see ArrayUtils#nullSafeArray(Object[], Class)
  @see ArrayUtils#nullSafeLength(Object[])