final PentahoJcrConstants pentahoJcrConstants, final IPathConversionHelper pathConversionHelper,
final String childNodeFilter, final ILockHelper lockHelper, final int depth, final boolean showHidden,
final IRepositoryAccessVoterManager accessVoterManager, RepositoryRequest.FILES_TYPE_FILTER types,
MutableBoolean foundFiltered, boolean isRootFiltered ) throws RepositoryException {
RepositoryFile file = nodeToFile( session, pentahoJcrConstants, pathConversionHelper, lockHelper, childNode );
if ( isSupportedNodeType( pentahoJcrConstants, childNode )
&& ( accessVoterManager.hasAccess( file, RepositoryFilePermission.READ, JcrRepositoryFileAclUtils.getAcl(
session, pentahoJcrConstants, file.getId() ), PentahoSessionHolder.getSession() ) ) ) {
MutableBoolean foundFilteredAtomic = new MutableBoolean( !isPentahoFolder( pentahoJcrConstants, childNode ) );
RepositoryFileTree repositoryFileTree =
getTreeByNode( session, pentahoJcrConstants, pathConversionHelper, lockHelper, childNode, depth - 1,
childNodeFilter, showHidden, accessVoterManager, types, foundFilteredAtomic );
if ( repositoryFileTree != null && ( foundFilteredAtomic.booleanValue() || isRootFiltered ) ) {