private static void addRemoteInvocationServices(final OperationContext context, final List<ServiceController<?>> newControllers,
final ModelNode ejbSubsystemModel, final boolean appclient) throws OperationFailedException {
final ServiceTarget serviceTarget = context.getServiceTarget();
// Add the tccl based client context selector
final TCCLEJBClientContextSelectorService tcclBasedClientContextSelector = new TCCLEJBClientContextSelectorService();
context.getServiceTarget().addService(TCCLEJBClientContextSelectorService.TCCL_BASED_EJB_CLIENT_CONTEXT_SELECTOR_SERVICE_NAME,
tcclBasedClientContextSelector).install();
// EJB client context selector will be locked on the server if it's not application client container
final boolean lockEJBClientContextSelector = appclient ? false : true;