@@ -0,0 +1,1467 @@
+/*%0A * Copyright 2000-2013 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.intellij.framework.impl;%0A%0Aimport com.intellij.framework.FrameworkType;%0Aimport com.intellij.framework.FrameworkTypeEx;%0A%0Aimport java.util.Comparator;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * @author nik%0A */%0Apublic class FrameworkTypeUtil %7B%0A  public static final Comparator%3CFrameworkType%3E FRAMEWORK_TYPE_COMPARATOR = new Comparator%3CFrameworkType%3E() %7B%0A    @Override%0A    public int compare(FrameworkType o1, FrameworkType o2) %7B%0A      return o1.getPresentableName().compareToIgnoreCase(o2.getPresentableName());%0A    %7D%0A  %7D;%0A%0A  public static Map%3CString, FrameworkType%3E computeFrameworkTypeByIdMap() %7B%0A    Map%3CString, FrameworkType%3E frameworkTypes = new HashMap%3CString, FrameworkType%3E();%0A    for (FrameworkTypeEx type : FrameworkTypeEx.EP_NAME.getExtensions()) %7B%0A      frameworkTypes.put(type.getId(), type);%0A    %7D%0A    return frameworkTypes;%0A  %7D%0A%7D%0A

allow to use framework-specific libraries from application servers installations