private Map<GdlConstant, List<GdlRule>> recordTemplates(List<Gdl> description)
{
Map<GdlConstant, List<GdlRule>> templates = new HashMap<GdlConstant, List<GdlRule>>();
for ( Gdl gdl : description )
{
GdlRule rule = (gdl instanceof GdlRule) ? (GdlRule) gdl : GdlPool.getRule((GdlSentence) gdl);
GdlConstant name = rule.getHead().getName();
if ( !name.getValue().equals("base") )
{
if ( !templates.containsKey(name) )
{