164165166167168169170171
} } private void assertUniqueResourceName(T resource, SessionInfo session) throws DuplicateResourceNameException { if (isResourceNameInUse(resource.getResourceName(), session)) { throw new DuplicateResourceNameException(resource); } }