public void endTag(String[] tagstk, int tagstkptr, String tag, Object body,
HashMap attribs) throws Exception, IOException
{
String attr;
REntity entity = null;
if(attribs.containsKey("create entity")){ // For create Entity Tags, we pop the Entity from the Entity Stack on the End Tag.
attribs.remove("create entity");
entity = (REntity) state.entitypop();
Iterator pairs = map.attribute2listPairs.iterator();
body = ""; // Don't care about the Body if creating an Entity, but it can't be null either.
while(pairs.hasNext()){
Object [] pair = (Object []) pairs.next();
if(entity.containsAttribute(RName.getRName((String)pair[0]))){
RName.getRName((String) pair[1],true).execute(state);
state.entitypush(entity);
RName.getRName("addto",true).execute(state);
}