filter.addEqualTo("parent", new Integer(folderImpl.getIdentity()));
QueryByCriteria query = QueryFactory.newQuery(FolderImpl.class, filter);
Collection folders = getPersistenceBrokerTemplate().getCollectionByQuery(query);
// cache folders in folder
folderImpl.accessFolders().clear();
if (folders != null)
{
folderImpl.accessFolders().addAll(folders);
}
folderImpl.resetFolders(true);