Session em = getHibernateSession(ctx);
try
{
HibernateIdentityObjectRelationshipName hiorn = (HibernateIdentityObjectRelationshipName)em.createCriteria(HibernateIdentityObjectRelationshipName.class)
.add(Restrictions.eq("name", name)).add(Restrictions.eq("realm", getRealm(em, ctx))).uniqueResult();
if (hiorn == null)
{
throw new IdentityException("Relationship name doesn't exist");
}
return new HashMap<String, String>(hiorn.getProperties());
}
catch (Exception e)
{
throw new IdentityException("Cannot get relationship name properties: " + name, e);