}
public static Heroes toHeroes(ParserObject object) throws ParserException {
Units u = toUnits(object);
List<Unit> units = u.getUnit();
Heroes h = new Heroes();
List<Hero> heroes = h.getHero();
for (Unit unit : units) {
//Hero hero = (Hero)unit;
Hero hero = new Hero(unit);
ParserObject heroObject = object.getParserObject(hero.getName());
if (heroObject.has("HeroID"))