code: private static Object generateKey(final Object[] args) {
          if (args == null) return Collections.emptyList();
          Object[] copyOfArgs = copyOf(args, args.length);
          return asList(copyOfArgs);
      }
docs: Creates a key to use in the memoize cache
  
  @param args The arguments supplied to the closure invocation
  
  @return The key - a list holding all arguments