if (StringUtils.isEmpty(repo.getId())) {
response.addValidationError(new ValidationMessage("id", "Repository ID's may not be empty!"));
}
else if (!repo.getId().matches(REPOSITORY_ID_PATTERN)) {
response.addValidationError(
new ValidationMessage("id",
"Only letters, digits, underscores(_), hyphens(-), and dots(.) are allowed in Repository ID"));
}
// if repo id isn't valid, nothing below here will validate properly
else {