AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);
canEdit();
    public void createTemplateItem()        throws SQLException, AuthorizeException    {        // Check authorisation        AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);        if (template == null)        {            template = Item.create(ourContext);            collectionRow.setColumn("template_item_id", template.getID());            log.info(LogManager.getHeader(ourContext,                "create_template_item",                "collection_id=" + getID() +                    ",template_item_id=" + template.getID()));        }    }