Session hibernateSession = getHibernateSession(ctx);
try
{
HibernateIdentityObjectRelationshipName hiorn = (HibernateIdentityObjectRelationshipName)hibernateSession.createCriteria(HibernateIdentityObjectRelationshipName.class)
.add(Restrictions.eq("name", name)).add(Restrictions.eq("realm", getRealm(hibernateSession, 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);