throw new RuntimeException("error while getting inline template information", e); } catch (RuntimeException e) { if (e.getCause() instanceof ObjectStoreException) {     return null; }
    private static InlineTemplateTable makeInlineTemplateTable(ServletContext servletContext,                                                               TemplateQuery template,                                                               InterMineObject object) {        TemplateForm templateForm = new TemplateForm();        ObjectStore os = (ObjectStore) servletContext.getAttribute(Constants.OBJECTSTORE);        Map webProperties = (Map) servletContext.getAttribute(Constants.WEB_PROPERTIES);        /*if (template.getQuery().getAlternativeView(viewName) == null) {            // ignore templates that don't have an attributes only view            return null;        }*/                int unconstrainedCount =             fillTemplateForm(template, /*viewName,*/ object, templateForm, os.getModel());        if (unconstrainedCount > 0) {            return null;        }        templateForm.parseAttributeValues(template, null, new ActionErrors(), false);                PathQuery pathQuery = TemplateHelper.templateFormToQuery(templateForm, template);        try {            Query query = MainHelper.makeQuery(pathQuery, Collections.EMPTY_MAP);            Results results = os.execute(query);                                List columnNames = new ArrayList(pathQuery.getView());            InlineTemplateTable itt =                new InlineTemplateTable(results, columnNames, webProperties);            List viewNodes = pathQuery.getView();                                /*Iterator viewIter = viewNodes.iterator();            while (viewIter.hasNext()) {                String path = (String) viewIter.next();                String className = MainHelper.getTypeForPath(path, pathQuery);                if (className.indexOf(".") == -1) {                    // a primative like "int"                } else {                    Class nodeClass = Class.forName(className);                    if (InterMineObject.class.isAssignableFrom(nodeClass)) {                        // can't display objects inline yet                        //return null;                    }                }            }*/            return itt;        } catch (IllegalArgumentException e) {            // probably a template is out of date            LOG.error("error while getting inline template information", e);        //} catch (ClassNotFoundException e) {        //    // probably a template is out of date        //    LOG.error("error while getting inline template information", e);        } catch (ObjectStoreException e) {            LOG.error("error while getting inline template information", e);        }        return null;    }