private void processUsers(LocalContainer container,File configOverrides) throws IOException {
  List<User> userList=getUsers();
  if (userList != null) {
    Map<String,List<String>> groups=new HashMap<String,List<String>>();
    Map<String,String> users=new HashMap<String,String>();
    for (    User u : userList) {
      users.put(u.getName(),u.getPassword());
      for (      String group : u.getRoles()) {
        List<String> members=groups.get(group);
        if (members == null) {
          members=new ArrayList<String>();
          groups.put(group,members);
        }
        members.add(u.getName());
      }
    }
    writeUserRegistry(container,configOverrides,users,groups);
  }
}

private void processUsers ( LocalContainer container , File configOverrides ) throws IOException { List < User > userList = getUsers ( ) ; if ( userList != null ) { Map < String , List < String > > groups = new HashMap < String , List < String > > ( ) ; Map < String , String > users = new HashMap < String , String > ( ) ; for ( User u : userList ) { users . put ( u . getName ( ) , u . getPassword ( ) ) ; for ( String group : u . getRoles ( ) ) { List < String > members = groups . get ( group ) ; if ( members == null ) { members = new ArrayList < String > ( ) ; groups . put ( group , members ) ; } members . add ( u . getName ( ) ) ; } } writeUserRegistry ( container , configOverrides , users , groups ) ; } }
processes the users property and writes the server xml
