anchor.diff:  %@private
   init(_Args) ->
       ets:new(?MODULE, [set, protected, named_table]),
  +    process_flag(trap_exit, true),
       State = null,
       State.
   
  
positive.code:              failed
           end.
  
  
  
  
  
  find_all_groups([], Set) ->
      Set;
  find_all_groups([{{InstanceId, _}, _} | Rest], Set) ->
  
negative.code:     AllGroups = find_all_groups(ets:tab2list(?MODULE), gb_sets:new()),
      GroupsAsJson = {array, lists:foldl(fun(El, Rest) -> [{struct, [{id, El}, {text, El}, {leaf, false}]} | Rest] end, [], gb_sets:to_list(AllGroups))},
      GroupsAsJson.
  
  %% @doc find processes in a group (for web interface)
  %% @spec get_processes_in_group(term()) -> term()
  get_processes_in_group(Group) ->
      AllProcesses = find_processes_in_group(ets:tab2list(?MODULE), gb_sets:new(), Group),
      ProcessesAsJson = {array, lists:foldl(fun(El, Rest) -> [{struct, [{id, toString(El)}, {text, toString(El)}, {leaf, true}]} | Rest] end, [], gb_sets:to_list(AllProcesses))},
      ProcessesAsJson.
  
  get_all_pids() ->
      [X || [X]<- ets:match(?MODULE, {'_','$1'})].
  
  %%====================================================================
  %% API
  %%====================================================================
  