public ProjectTypeResolution estimateProject(String path,String projectTypeId) throws ServerException, NotFoundException, ValueStorageException {
  final ProjectTypeDef projectType=projectTypeRegistry.getProjectType(projectTypeId);
  if (projectType == null) {
    throw new NotFoundException("Project Type to estimate needed.");
  }
  final FolderEntry baseFolder=asFolder(path);
  if (baseFolder == null) {
    throw new NotFoundException("Folder not found: " + path);
  }
  return projectType.resolveSources(baseFolder);
}

public ProjectTypeResolution estimateProject ( String path , String projectTypeId ) throws ServerException , NotFoundException , ValueStorageException { final ProjectTypeDef projectType = projectTypeRegistry . getProjectType ( projectTypeId ) ; if ( projectType == null ) { throw new NotFoundException ( "Project Type to estimate needed." ) ; } final FolderEntry baseFolder = asFolder ( path ) ; if ( baseFolder == null ) { throw new NotFoundException ( "Folder not found: " + path ) ; } return projectType . resolveSources ( baseFolder ) ; }
estimates if the folder can be treated as a project of particular type
