public static ContentTree createCalendarTree(
      ApplicationManager appManager, Application app, String dataSourceUid, long flags)
      throws ParserConfigurationException, SAXException, IOException, ParseException {
    ContentTree tree = new ContentTree();
    tree.id = "1";
    DataSourceBase dataSource = app.getDataSource(dataSourceUid);

    DataSourceCache dsc = ServerCache.getDSC(appManager, app, dataSource);
    ArrayList<CContent> calendars = dsc.getByType(ECMContentSourceType.GoogleCalendar);
    if (calendars != null) {
      // addTreeItemsByParent(CList albums,ArrayList<CListItem>photos,ContentTree
      // tree,DataSourceBase dataSource)
      // addTreeItemsByParentCalendars(ArrayList<CContent>calendars,ContentTree tree,DataSourceBase
      // dataSource)
      GoogleTreeFactory.addTreeItemsByParentCalendars(calendars, tree, dataSource);
    }

    return tree;
  }