if (party instanceof Person) {
if (party.isPerson()) {
    public static List<Person> readAllPersons() {	List<Person> allPersons = new ArrayList<Person>();	for (Party party : RootDomainObject.getInstance().getPartys()) {	    if (party instanceof Person) {		allPersons.add((Person) party);	    }	}	return allPersons;    }