createDomain();
}
protected void createDomain() {
// only ApplicationProjects can have domains, so this cast is reasonable
ApplicationProject project = (ApplicationProject) getCurrentProject();
ProjectController mediator = getProjectController();
DataDomain domain = (DataDomain) NamedObjectFactory.createObject(
DataDomain.class,
project.getConfiguration());
domain.getEntityResolver().setIndexedByClass(false);
project.getConfiguration().addDomain(domain);
mediator.fireDomainEvent(new DomainEvent(this, domain, MapEvent.ADD));
mediator.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
}