public class SubsystemTreeBuilder {
public static void build(final HasTreeItems subsysTree, List<SubsystemRecord> subsystems)
{
SubsystemRegistry registry = Console.getSubsystemRegistry();
Map<String, List<SubsystemExtensionMetaData>> grouped = new HashMap<String, List<SubsystemExtensionMetaData>>();
List<String> groupNames = new ArrayList<String>();
for(SubsystemExtensionMetaData ext : registry.getExtensions())
{
if(!grouped.containsKey(ext.getGroup()))
{
groupNames.add(ext.getGroup());
grouped.put(ext.getGroup(), new ArrayList<SubsystemExtensionMetaData>());