new ArrayList<IModule>(Arrays.asList(moduleTree)); //so proper size is set directly to the list