Example - Capabilities in LoginEnvironment Constructor
final String REQUIRED_CAP_LIST = "grid,query"; th.loginEnv = new LoginEnvironment(AIS_SERVER, USER_NAME, PASSWORD, ENVIRONMENT, ROLE, DEVICE, REQUIRED_CAP_LIST, JAS_SERVER);
If the list includes a capability that is not available on the AIS Server, it throws a CapabilityException, as shown in Example - Capability Exception.