if (!associatedSpec.isValueOrIsAggregated()) {
final IdentityData associateReference = encoder.encodeIdentityData(associateAdapter);
final SetAssociationRequest request =
new SetAssociationRequest(getAuthenticationSession(), name, targetReference,
associateReference);
final SetAssociationResponse response = serverFacade.setAssociation(request);
updates = response.getUpdates();
} else {
final EncodableObjectData val = encoder.encodeAsValue(associateAdapter);
final SetValueRequest request =
new SetValueRequest(getAuthenticationSession(), name, targetReference, val);
final SetValueResponse response = serverFacade.setValue(request);
updates = response.getUpdates();
}
encoder.decode(updates);
}
} catch (final ConcurrencyException e) {
throw ProxyUtil.concurrencyException(e);