code: public <T extends Trigger> T getTrigger(Class<T> clazz) {
          for (Trigger p : triggers()) {
              if(clazz.isInstance(p))
                  return clazz.cast(p);
          }
          return null;
      }
docs: Gets the specific trigger, or null if the property is not configured for this job.