Simplify code. Remove redundant casts and checks.

From sources/javadoc:
hudson.model.AbstractProject#getTrigger(Class<T> clazz)
* Gets the specific trigger, or null if the propert is not configured for this job.
You're right. I wasn't paying attention to which section that was. As for request or requests, I would probably go with requests as you have mentioned different ways this might build a request it may also be building multiple requests. Or it at least has the capability of building multiple requests.