public synchronized int port() {
        if (initialized) {
            return port;
        } else {
            throw new IllegalStateException("This must be done after route mapping has begun");
        }
    }
Retrieves the port that Spark is listening on.

@return The port Spark server is listening on.
@throws IllegalStateException when the server is not started
src/main/java/spark/Service.java