registry.rollbackTransaction();
}
if (e instanceof RegistryException) {
throw (RegistryException) e;
} else {
throw new IdentityException(
"Error occured while creating new oauth application", e);
}
}
if (log.isDebugEnabled()) {
log.debug("New oauth application added successfully, " + app.getApplicationName());
}
} catch (RegistryException e) {
log.error("Error occured while creating new oauth application", e);
throw new IdentityException("Error occured while creating new oauth application", e);
}
}