String contentTypeCode = this.getContentType();
if (null == this.getContentManager().getSmallContentTypesMap().get(contentTypeCode)) {
String[] args = {this.getContentType()};
this.addFieldError("contentType", this.getText("error.calendarConfig.invalidContentType", args));
} else {
Content prototype = this.getContentManager().createContentType(contentTypeCode);
if (null == this.getStartDateAttributeName() || null == prototype.getAttribute(this.getStartDateAttributeName())) {
String[] args = {this.getStartDateAttributeName()};
this.addFieldError("startDateAttributeName", this.getText("error.calendarConfig.invalidStartDateAttribute", args));
}
if (null == this.getEndDateAttributeName() || null == prototype.getAttribute(this.getEndDateAttributeName())) {
String[] args = {this.getEndDateAttributeName()};
this.addFieldError("endDateAttributeName", this.getText("error.calendarConfig.invalidEndDateAttribute", args));
}
if (null != this.getStartDateAttributeName() && null != this.getEndDateAttributeName()
&& this.getEndDateAttributeName().equals(this.getStartDateAttributeName())) {