package structures.basic; import java.util.HashSet; import java.util.Set; import utils.BasicObjectBuilders; import utils.StaticConfFiles; public class BetterUnit extends Unit { Set keywords; public BetterUnit() {} public BetterUnit(Set keywords) { super(); this.keywords = keywords; } public Set getKeywords() { return keywords; } public void setKeywords(Set keywords) { this.keywords = keywords; }; public static void main(String[] args) { BetterUnit unit = (BetterUnit)BasicObjectBuilders.loadUnit(StaticConfFiles.humanAvatar, 0, BetterUnit.class); Set keywords = new HashSet(); keywords.add("MyKeyword"); unit.setKeywords(keywords); System.err.println(unit.getClass()); } }