@Transactional(readOnly = true)
public Application getApplication(
final String id) throws GenieException {
if (StringUtils.isBlank(id)) {
//Messages will be logged by exception mapper at resource level
throw new GeniePreconditionException("No id entered. Unable to get");
}
LOG.debug("Called with id " + id);
final Application app = this.applicationRepo.findOne(id);
if (app == null) {
throw new GenieNotFoundException("No application with id " + id);