Once you have an instance of ServerContext, you can create other contexts from it.
The following code fragment creates multiple contexts for cluster, security, domain, package, mobile business objects, and operations:
ClusterContext clusterContext = serverContext.getClusterContext("<cluster name>"); SecurityContext securityContext = clusterContext.getSecurityContext("<security configuration name>"); DomainContext domainContext = clusterContext.getDomainContext("<domain name>"); PackageContext packageContext = domainContext.getPackageContext("<package name>"); MBOContext mboContext = packageContext.getMBOContext("<MBO name>"); OperationContext operationContext = mboContext.getOperationContext("<operation name>");
SUPObjectFactory.getSUPServer()
SUPObjectFactory.shutdown();