get context when create server.