}
void updateDefaultLocalEJBReceiverService(final OperationContext context, final ModelNode model, List<ServiceController<?>> newControllers) throws OperationFailedException {
final ModelNode passByValueModel = this.attributeDefinition.resolveModelAttribute(context, model);
final ServiceRegistry registry = context.getServiceRegistry(true);
final ServiceName localEJBReceiverServiceName;
if (passByValueModel.isDefined()) {
final boolean passByValue = passByValueModel.asBoolean(true);
if (passByValue) {
localEJBReceiverServiceName = LocalEjbReceiver.BY_VALUE_SERVICE_NAME;
} else {
localEJBReceiverServiceName = LocalEjbReceiver.BY_REFERENCE_SERVICE_NAME;
}
} else {
localEJBReceiverServiceName = LocalEjbReceiver.BY_VALUE_SERVICE_NAME;
}
// uninstall the existing default local EJB receiver service
final ServiceController<?> existingDefaultLocalEJBReceiverServiceController = registry.getService(LocalEjbReceiver.DEFAULT_LOCAL_EJB_RECEIVER_SERVICE_NAME);
if (existingDefaultLocalEJBReceiverServiceController != null) {
context.removeService(existingDefaultLocalEJBReceiverServiceController);
}
final ServiceTarget serviceTarget = context.getServiceTarget();
// now install the new default local EJB receiver service which points to a existing Local EJB receiver service