private Date getModificationDate(Endpoint endpoint, Date modificationDate) {
    """
	Enforce http://tools.ietf.org/html/rfc7232#section-2.2:
	if the clock in the request is ahead of the clock of the origin
	server (e.g., I request from Spain the update of a resource held in USA)
	the last-modified data should be changed to that of the request and not
	a generated date from the origin server
    """
		Date result=endpoint.lastModified();
		if(modificationDate.after(result)) {
			result=modificationDate;
		}
		return result;
	}
private Date getModificationDate(Endpoint endpoint, Date modificationDate) {
		Date result=endpoint.lastModified();
		if(modificationDate.after(result)) {
			result=modificationDate;
		}
		return result;
	}
private Date getModificationDate ( Endpoint endpoint , Date modificationDate ) { Date result = endpoint . lastModified ( ) ; if ( modificationDate . after ( result ) ) { result = modificationDate ; } return result ; }
Enforce http://tools.ietf.org/html/rfc7232#section-2.2:
if the clock in the request is ahead of the clock of the origin
server (e.g., I request from Spain the update of a resource held in USA)
the last-modified data should be changed to that of the request and not
a generated date from the origin server
Enforce http : // tools . ietf . org / html / rfc7232#section - 2 . 2 : if the clock in the request is ahead of the clock of the origin server ( e . g . I request from Spain the update of a resource held in USA ) the last - modified data should be changed to that of the request and not a generated date from the origin server