@Override
public Set<String> addTagsForApplication(
final String id,
final Set<String> tags) throws GenieException {
if (StringUtils.isBlank(id)) {
throw new GeniePreconditionException("No application id entered. Unable to add tags.");
}
if (tags == null) {
throw new GeniePreconditionException("No tags entered.");
}
final Application application = this.applicationRepo.findOne(id);
if (application != null) {
application.getTags().addAll(tags);
return application.getTags();