* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEndpointReference(EndpointReferenceRole newEndpointReference) {
EndpointReferenceRole oldEndpointReference = endpointReference;
endpointReference = newEndpointReference == null ? ENDPOINT_REFERENCE_EDEFAULT : newEndpointReference;
boolean oldEndpointReferenceESet = endpointReferenceESet;
endpointReferenceESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.FROM__ENDPOINT_REFERENCE, oldEndpointReference, endpointReference, !oldEndpointReferenceESet));