@SuppressWarnings("unchecked")
private static Map<String, String> getFileExtensionIcons() {
if (fileExtensionIcons == null) {
synchronized (FileUtils.class) {
if (fileExtensionIcons == null) {
SpringContextSingleton ctxHolder = SpringContextSingleton
.getInstance();
if (ctxHolder.isInitialized()) {
Map<String, String> icons = (Map<String, String>) ctxHolder
.getContext().getBean("fileExtensionIcons");
FastHashMap mappings = new FastHashMap(icons);
mappings.setFast(true);
String[] jsMappings = new String[2];
jsMappings[0] = new StringBuilder(512).append("\"")