write down the static method to get server context

write down the static method to get server context