code: public static DesiredCapabilities retrieveCustomCapabilities(String[] capabilitiesArray) {
          logger.entering((Object[]) capabilitiesArray);
  
          DesiredCapabilities caps = new DesiredCapabilities();
          if (capabilitiesArray.length != 0) {
              Map<String, Object> capabilityMap = parseIntoCapabilities(capabilitiesArray);
              // We found some capabilities. Lets merge them.
              caps = new DesiredCapabilities(capabilityMap);
          }
  
          logger.exiting(caps);
          return caps;
      }
docs: Parse capabilities from an array of String which uses the "name:value" format
  
  @param capabilitiesArray
  the capabilities to parse
  @return the parsed capabilities as a {@link DesiredCapabilities} object