Possible npe

  GerritServer server = getServer(serverName);
  if (server != null) 
    return server.getConfig();
  else {
    return null;
  }