// create an ORB using the name service.
nssORB = configAdapter.createNameServiceClientORB(this);
// the configAdapter creates the ORB instance for us.
cssORB = configAdapter.createClientORB(this);
PolicyManager policyManager = (PolicyManager) cssORB.resolve_initial_references("ORBPolicyManager");
Policy[] policies = new Policy[] {new ClientPolicy(cssConfig), new ClientTransactionPolicy(buildClientTransactionPolicyConfig())};
policyManager.set_policy_overrides(policies, SetOverrideType.ADD_OVERRIDE);
} finally {
Thread.currentThread().setContextClassLoader(savedLoader);
}