public Optional < Server > getPossiblyUnreadyServerById ( long id ) { if ( nonReadyServers . containsKey ( id ) ) { return Optional . ofNullable ( nonReadyServers . get ( id ) ) ; } return Optional . ofNullable ( servers . get ( id ) ) ; }
Gets a server by it s id including ready and not ready ones .