Create the context objects you require. The following diagram illustrates the subclasses of AdminContext and their logical hierarchy.

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>");