new Object[]{ new Integer(targetId), name },
new Type[]{ Hibernate.INTEGER, Hibernate.STRING });
if (existingAttributes.size() == 0) {
session.save(attribute);
} else {
session.update(attribute);
}
} catch (RuntimeException e) {
throw e;
} catch (HibernateException e) {
throw new RepositoryException(e);