This is asynchronous call which means it will return immediately while the server starts on a background thread... so the serverState will always be "STATE_STARTING" so you will need to sit and spin