public static TagMetaData parse(XMLStreamReader reader, Version version) throws XMLStreamException {
TagMetaData tag = null;
switch (version) {
case TLD_1_1:
tag = new Tag11MetaData();
break;
case TLD_1_2:
tag = new Tag12MetaData();
break;
default: tag = new TagMetaData();