List gcList = (List) handlerCtx.getInputValue("GCList");
List nlList = (List) handlerCtx.getInputValue("NLList");
ArrayList menuList = new ArrayList();
menuList.add(new Option("", ""));
// Menu for Virtual Servers
OptionGroup vsMenuOptions = getMenuOptions(vsList, "virtual-server", "", false);
if(vsMenuOptions != null){
menuList.add(vsMenuOptions);
}
// Menu for Listeners
OptionGroup nlMenuOptions = getMenuOptions(nlList, "http-listener", "", false);
if(nlMenuOptions != null){
menuList.add(nlMenuOptions);
}
// Menu for Garbage Collectors
OptionGroup gcMenuOptions = getMenuOptions(gcList, "garbage-collector", "", false);
if(gcMenuOptions != null){
menuList.add(gcMenuOptions);
}
// Menu for Thread System
OptionGroup tsMenuOptions = getMenuOptions(threadList, "thread-system", "", false);
if (tsMenuOptions != null) {
menuList.add(tsMenuOptions);
}
// Add Menu Options.
jumpMenuOptions = (Option[])menuList.toArray(new Option[menuList.size()]);