package com.cflint.tools;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;

public class AllowedExtensionsLoader {

    public static final String CFC_DEFAULT_EXTENSION = ".cfc";
    public static final String CFM_DEFAULT_EXTENSION = ".cfm";

    public static List<String> init(final String resourceBundleName) {
        List<String> allowedExtensions = new ArrayList<>();
        try {
            allowedExtensions.addAll(Arrays
                    .asList(ResourceBundle.getBundle(resourceBundleName).getString("allowedextensions").split(",")));
        } catch (final Exception e) {
            allowedExtensions.add(CFC_DEFAULT_EXTENSION);
            allowedExtensions.add(CFM_DEFAULT_EXTENSION);
        }
        return allowedExtensions;
    }
}

@@ -297,16 +297,145 @@
 .cfm%22;%0A%0A
+    private AllowedExtensionsLoader() %7B%0A        throw new IllegalStateException(%22AllowedExtensionsLoader utility class%22);%0A    %7D%0A%0A
     publ

add private constructor