Command command = (Command) service;
String scope = command.getScope();
String name = command.getName();
if (!Session.SCOPE_GLOBAL.equals(scope)) {
if (!subshells.containsKey(scope)) {
SubShellCommand subShell = new SubShellCommand(scope);
subshells.put(scope, subShell);
register(subShell);
}
subshells.get(scope).increment();
}