getMetadata().setDiscriminatorClasses(new ArrayList<DiscriminatorClassMetadata>());
}
public DiscriminatorClass addDiscriminatorClass() {
DiscriminatorClassImpl discriminatorClass = new DiscriminatorClassImpl();
getMetadata().getDiscriminatorClasses().add(discriminatorClass.getMetadata());
return discriminatorClass;
}