if (productLine == null) {
productLine = new ProductLine();
productLine.setId(product);
productLine.setTitle(product);
buildDefaultDashboard(productLine, domain);
productLine.addDomain(new Domain(domain));
company.addProductLine(productLine);
return storeConfig();
} else {
Map<String, Domain> domains = productLine.getDomains();
if (domains.containsKey(domain)) {
return true;
} else {
domains.put(domain, new Domain(domain));
return storeConfig();
}
}
}