code: public Object invoke(final String stepTokenId, final List<String> args) {
          final AtomicReference resultRef = new AtomicReference();
  
          PolledAssertion p = new PolledAssertion() {
              protected void validate() throws Exception {
                  Object r = wrappedInvoker.invoke(stepTokenId, args);
                  resultRef.set(r);
              }
  
              protected int getPollPeriodMillis() {
                  return (int)pollFrequency;
              }
          };
  
          retryAttempts = doTest(p, timeUnit, length);
  
          Object result = resultRef.get();
          return result;
      }
docs: Invoke the method
  @param stepTokenId
  @param args