code: @Deprecated
      public static DesiredCapabilities retrieveCustomCapabilities(InvokedMethodInformation methodInfo) {
          logger.entering(methodInfo);
  
          DesiredCapabilities caps = new DesiredCapabilities();
          Object additionalCaps =
                  methodInfo.getTestAttribute(com.paypal.selion.configuration.ExtendedConfig.CAPABILITIES.getConfig());
          if (additionalCaps instanceof DesiredCapabilities) {
              caps = (DesiredCapabilities) additionalCaps;
          }
  
          logger.exiting(caps);
          return caps;
      }
docs: Acquire capabilities from the TestNG {@link InvokedMethodInformation}
  
  @param methodInfo
  the TestNG {@link InvokedMethodInformation}
  @return the provided {@link DesiredCapabilities} which are associated with the {@link InvokedMethodInformation}