code: public <T extends Action> T getAction(Class<T> type) {
          // Shortcut: if the persisted list has one, return it.
          for (Action a : getActions()) {
              if (type.isInstance(a)) {
                  return type.cast(a);
              }
          }
          // Otherwise check transient factories.
          for (TransientActionFactory<?> taf : TransientActionFactory.factoriesFor(getClass(), type)) {
              for (Action a : createFor(taf)) {
                  if (type.isInstance(a)) {
                      return type.cast(a);
                  }
              }
          }
          return null;
      }
docs: Gets the action (first instance to be found) of a specified type that contributed to this build.
  
  @param type
  @return The action or <code>null</code> if no such actions exist.
  @see #getActions(Class)