@Inject(optional=true) void injectGalaxyConfig(final GalaxyConfig galaxyConfig) throws IOException { this.galaxyPort = galaxyConfig.getPrivate().getPortJmx() == 0 ? null : galaxyConfig.getPrivate().getPortJmx(); final String host =galaxyConfig.getInternalIp().getIp(); if (host != null) { this.galaxyHost = InetAddress.getByName(host); } }