public static TreeMap<String, Showreel[]> getCategories(
HttpServletRequest request) throws StorageServletException, IOException {
IFile[] files;
Showreel showreel;
//InternalShowreel internalShowreel;
HtmlShowreel htmlShowreel;
//IFile f;
ArrayList<Showreel> showreels;
int i;
IPath root;
try {
if (categories == null) {
synchronized (ArrayListHelper.class) {
if (categories == null) {
root = Configuration.getSystemRoot().getRoot().getFolderItem("showreel");
files = StorageHelper.getDefinitionFiles(root, "showreel.xml");
showreels = new ArrayList<Showreel>();
for (i = 0; i < files.length; i++) {
try {
showreel = Showreel.load(files[i]);
if (showreel instanceof HtmlShowreel) {
htmlShowreel = (HtmlShowreel) showreel;
htmlShowreel.setFile(StorageHelper.getNonServletUrl(files[i].getParent(), htmlShowreel.getFile()));
}
showreels.add(showreel);
} catch (Exception e) {
log.log(Level.SEVERE,