List nags = getAgentsInSocieties();
List nags = getAgentsInSociety();
  private List getAgentsInComponents() {    List agents = new ArrayList();    List nags = getAgentsInSocieties();    if (nags != null && (! nags.isEmpty()))      agents.addAll(nags);    nags = getAgentsInRecipes();    if (nags != null && (! nags.isEmpty()))      agents.addAll(nags);    return agents;  }