public static ContentTree createDocFolderTree(
      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.GoogleDocumentFolder);
    if (calendars != null) {
      // addTreeItemsByParent(CList albums,ArrayList<CListItem>photos,ContentTree
      // tree,DataSourceBase dataSource)
      // addTreeItemsByParentCalendars(ArrayList<CContent>calendars,ContentTree tree,DataSourceBase
      // dataSource)
      GoogleTreeFactory.addTreeItemsByParentDocFolders(calendars, tree, dataSource);
    }

    return tree;
  }
  public static ContentTree createAlbumTree(
      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<CList> albums = dsc.getByType(ECMContentSourceType.GooglePicassaAlbum);
    ArrayList<CListItem> entries = dsc.getByType(ECMContentSourceType.GooglePicassaItem);
    if (albums != null && entries != null) {
      CList cAlbums = albums.get(0);
      if (cAlbums != null) {
        // addTreeItemsByParent(CList albums,ArrayList<CListItem>photos,ContentTree
        // tree,DataSourceBase dataSource)

        GoogleTreeFactory.addTreeItemsByParent(cAlbums, entries, tree, dataSource);
      }
    }

    return tree;
  }