void setDomainName(String newName) {
if (newName == null || newName.trim().length() == 0) {
throw new ValidationException("Enter name for DataDomain");
}
Configuration configuration = ((ApplicationProject) Application.getProject())
.getConfiguration();
DataDomain domain = projectController.getCurrentDataDomain();
DataDomain matchingDomain = configuration.getDomain(newName);
if (matchingDomain == null) {
Domain prefs = projectController.getPreferenceDomainForDataDomain();
DomainEvent e = new DomainEvent(this, domain, domain.getName());