private String buildEntityString(InanimateEntity item) throws XMLStreamException {
		StringBuilder str = new StringBuilder();
		Entities itemEnum = item.asEnum();
		// The enum name of the object, as that is the easiest distinction
		str.append(itemEnum.name()+XMLValues.SPACE);
		//if it need more detail, it will be in here
		switch (itemEnum){
		case CHEST:
			Chest chest = (Chest)item;
			str.append(chest.id+XMLValues.SPACE);
			str.append(chest.isLocked());
			break;
		case KEY:
			Key key = (Key)item;
			str.append(key.ID+XMLValues.SPACE);
			str.append(key.getDescription());
			break;
		case HEALTH:
		case POWERUP:
			Powerup p = (Powerup)item;
			str.append(p.getPower().name());
			break;
		case DOOREW:
			Door doorew = (Door) item;
			str.append(doorew.id+XMLValues.SPACE);
			str.append(doorew.isLocked());			
			break;
		case DOORNS:
			Door doorns = (Door) item;
			str.append(doorns.id+XMLValues.SPACE);
			str.append(doorns.isLocked());
			break;
		default:
			//not an item that needs more than it's name
			break;
		}
		return str.toString();
	}