title: akka java programmatic override configuration
body: <p>The few topics I can find about this are for Scala, rather than Java, and none address remote actors.</p>
  
  <p>I have a base configuration file (SERVER_CONFIG_FILE):</p>
  
  <pre><code>Include "akka-common"
  
  TheSystem {
    akka {
      actor {
        provider = "akka.remote.RemoteActorRefProvider"
          deployment { 
            /OtherSupervisor {
              remote = "akka://OtherSystem@127.0.0.1:8553"
            }
          }
        }
      remote {
        transport = "akka.remote.netty.NettyRemoteTransport"
        netty {
          hostname = "127.0.0.1"
          port = 8552
        }
      }
    }
  }
  </code></pre>
  
  <p>I want to load it in my program, and then override several settings, but I can't figure out the code.  Something like:</p>
  
  <pre><code>private final Config serverConfig = ConfigFactory.load(SERVER_CONFIG_FILE).withValue...?
  </code></pre>
  
  <p>I need to override the value of "akka://DroneSystem@127.0.0.1:8553", and also the hostname.  I think the hostname can be addressed by "ComparisonSystem.akka.remote.netty.hostname", but confirmation would help.</p>
  
  <p>I really do not know how to address the first value, nor what java calls to use to make it come together.  I can learn from an example I can see, but not from the Scala I find, and nothing addresses having that Actor Name in the path.</p>
  
  <p>Thanks in advance.</p>