@@ -0,0 +1,1921 @@
+package org.beanmaker.util;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Apublic class Names %7B%0A%0A    public static %3CB extends NamedDbBean%3E List%3CString%3E getList(final List%3CB%3E beans) %7B%0A        final List%3CString%3E names = new ArrayList%3CString%3E();%0A%0A        for (B bean: beans)%0A            names.add(bean.getDisplayName());%0A%0A        return names;%0A    %7D%0A%0A    public static %3CB extends NamedDbBean%3E List%3CString%3E getSortedList(final List%3CB%3E beans) %7B%0A        final List%3CString%3E names = getList(beans);%0A        Collections.sort(names);%0A        return names;%0A    %7D%0A%0A    public static %3CB extends MultiLingualNamedDbBean%3E List%3CString%3E getList(%0A            final List%3CB%3E beans,%0A            final DbBeanLanguage dbBeanLanguage)%0A    %7B%0A        final List%3CString%3E names = new ArrayList%3CString%3E();%0A%0A        for (B bean: beans)%0A            names.add(bean.getDisplayName(dbBeanLanguage));%0A%0A        return names;%0A    %7D%0A%0A    public static %3CB extends MultiLingualNamedDbBean%3E List%3CString%3E getSortedList(%0A            final List%3CB%3E beans,%0A            final DbBeanLanguage dbBeanLanguage)%0A    %7B%0A        final List%3CString%3E names = getList(beans, dbBeanLanguage);%0A        Collections.sort(names);%0A        return names;%0A    %7D%0A%0A    public static %3CB extends DbBeanMultilingual%3E List%3CString%3E getListFromMultilingualBeans(%0A            final List%3CB%3E beans,%0A            final DbBeanLanguage dbBeanLanguage)%0A    %7B%0A        final List%3CString%3E names = new ArrayList%3CString%3E();%0A%0A        for (B bean: beans)%0A            names.add(bean.getLabel(dbBeanLanguage));%0A%0A        return names;%0A    %7D%0A%0A    public static %3CB extends DbBeanMultilingual%3E List%3CString%3E getSortedListFromMultilingualBeans(%0A            final List%3CB%3E beans,%0A            final DbBeanLanguage dbBeanLanguage)%0A    %7B%0A        final List%3CString%3E names = getListFromMultilingualBeans(beans, dbBeanLanguage);%0A        Collections.sort(names);%0A        return names;%0A    %7D%0A%7D%0A

Add utility class to create list of names from bean