try
{
ObjectName service = createRelationService("test:type=service", server);
createRelationTypeC(service);
createRolesC(server);
RelationSupport support = null;
ObjectName result1 = null;
ObjectName result2 = null;
ObjectName on1 = null;
ObjectName on2 = null;
support = new RelationSupport("id1", service, server,
"relationTypeC", rolesC);
addRelation(server, service, support, "test:type=support1");
support = new RelationSupport("id2", service, server,
"relationTypeC", rolesC);
addRelation(server, service, support, "test:type=support2");
RelationService rs = (RelationService) services.get(service);
result1 = rs.isRelationMBean("id1");
result2 = rs.isRelationMBean("id2");