code: @GET
  	@Produces(MediaType.APPLICATION_JSON)
  	@Path("/{alertId}/triggers/{triggerId}")
  	@Description("Returns a trigger by its ID.")
  	public TriggerDto getTriggerById(@Context HttpServletRequest req, @PathParam("alertId") BigInteger alertId,
  									 @PathParam("triggerId") BigInteger triggerId) {
  		
  		if (alertId == null || alertId.compareTo(BigInteger.ZERO) < 1) {
  			throw new WebApplicationException("Alert Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
  		}
  		
  		if (triggerId == null || triggerId.compareTo(BigInteger.ZERO) < 1) {
  			throw new WebApplicationException("Trigger Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
  		}
  
  		PrincipalUser owner = validateAndGetOwner(req, null);
  		Alert alert = alertService.findAlertByPrimaryKey(alertId);
  		
  		if (alert != null) {
  			if(!alert.isShared()) {
  				validateResourceAuthorization(req, alert.getOwner(), owner);
  			}
  			
  			for (Trigger trigger : alert.getTriggers()) {
  				if (trigger.getId().equals(triggerId)) {
  					return TriggerDto.transformToDto(trigger);
  				}
  			}
  		}
  		
  		throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
  	}
docs: Returns the trigger for a given alert Id and trigger Id.
  
  @param   req        The HttpServlet request object. Cannot be null.
  @param   alertId    The alert Id. Cannot be null and must be a positive non-zero number.
  @param   triggerId  The trigger Id. Cannot be null and must be a positive non-zero number.
  
  @return  The trigger
  
  @throws  WebApplicationException  The exception with 404 status will be thrown if the trigger does not exist.