[server] preserve application selector

It should be create prototype function for this purpose.