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);
}