The following example shows you how get the ServerContext instance for a DBConnectionContext. This example assumes you have a DBConnectionContext instance named _cc.
// A method that uses a ServerContext instance to shut down the server
public void shutDownServer() {
ServerContext context = _cc.getServerContext();
context.shutdown();
}