This can be written more concisely as 
`port = Option(ctx.getInteger(CONF_PORT)).getOrElse { throw new ConfigurationException(...) }`