private static void initalise(){
  if (currentProfile == null) {
    currentProfile=ConfigurationManager.getCurrentProfile();
    maxBeforeSplit=currentProfile.getMaxBeforeSplit();
    maxSplitLevels=currentProfile.getMaxSplitLevels();
    maxBeforePaginate=currentProfile.getMaxBeforePaginate();
    useExternalIcons=currentProfile.getExternalIcons();
    useExternalImages=currentProfile.getExternalImages();
    includeCoversInCatalog=currentProfile.getIncludeCoversInCatalog();
    booksURI=currentProfile.getUrlBooks();
    collator=Collator.getInstance(ConfigurationManager.getLocale());
    xslCatalogChanged=!CatalogManager.isGenerateFileSameAsCatalogFile(Constants.CATALOG_XSL);
    xslFullEntryChanged=!CatalogManager.isGenerateFileSameAsCatalogFile(Constants.FULLENTRY_XSL);
    defaultCoverFile=CachedFileManager.addCachedFile(new File(CatalogManager.getGenerateFolder(),Constants.DEFAULT_IMAGE_FILENAME));
    defaultCoverUri=Constants.PARENT_PATH_PREFIX + Constants.DEFAULT_IMAGE_FILENAME;
  }
}

private static void initalise ( ) { if ( currentProfile == null ) { currentProfile = ConfigurationManager . getCurrentProfile ( ) ; maxBeforeSplit = currentProfile . getMaxBeforeSplit ( ) ; maxSplitLevels = currentProfile . getMaxSplitLevels ( ) ; maxBeforePaginate = currentProfile . getMaxBeforePaginate ( ) ; useExternalIcons = currentProfile . getExternalIcons ( ) ; useExternalImages = currentProfile . getExternalImages ( ) ; includeCoversInCatalog = currentProfile . getIncludeCoversInCatalog ( ) ; booksURI = currentProfile . getUrlBooks ( ) ; collator = Collator . getInstance ( ConfigurationManager . getLocale ( ) ) ; xslCatalogChanged = ! CatalogManager . isGenerateFileSameAsCatalogFile ( Constants . CATALOG_XSL ) ; xslFullEntryChanged = ! CatalogManager . isGenerateFileSameAsCatalogFile ( Constants . FULLENTRY_XSL ) ; defaultCoverFile = CachedFileManager . addCachedFile ( new File ( CatalogManager . getGenerateFolder ( ) , Constants . DEFAULT_IMAGE_FILENAME ) ) ; defaultCoverUri = Constants . PARENT_PATH_PREFIX + Constants . DEFAULT_IMAGE_FILENAME ; } }
initialise the static variables to the correct values for the catalog that is bing generated
