Since we can't pass Option here because of the different Scala versions, I think it makes sense to make the mainDev method just accept java.lang.Integer, in which case we can pass null when http/https is disabled.  I think that might be simpler.