public List<ITenant> getChildTenants( Session session, final ITenant parentTenant,
final boolean includeDisabledTenants ) throws RepositoryException {
List<ITenant> children = new ArrayList<ITenant>();
List<RepositoryFile> allChildren =
JcrRepositoryFileUtils.getChildren( session, new PentahoJcrConstants( session ), pathConversionHelper, null,
getTenantRootFolder( session, parentTenant ).getId(), null );
for ( RepositoryFile repoFile : allChildren ) {
Map<String, Serializable> metadata = JcrRepositoryFileUtils.getFileMetadata( session, repoFile.getId() );
if ( metadata.containsKey( ITenantManager.TENANT_ROOT )
&& (Boolean) metadata.get( ITenantManager.TENANT_ROOT ) ) {