setEndpoint(endpoint) {
		this.endpoint = endpoint;
		if (endpoint) {
			this.nodeID = endpoint.id;
			if (endpoint.action) {
				this.action = endpoint.action;
				this.service = this.action.service;
				this.event = null;
			} else if (endpoint.event) {
				this.event = endpoint.event;
				this.service = this.event.service;
				this.action = null;
			}
		}
	}
Set endpoint of context

@param {Endpoint} endpoint
@memberof Context