if (identityObjectTypeType.getRelationships() != null &&
identityObjectTypeType.getRelationships().getRelationship() != null)
{
for (RelationshipType relationshipType : identityObjectTypeType.getRelationships().getRelationship())
{
RelationshipMetaDataImpl relMD = new RelationshipMetaDataImpl();
relMD.setIdentityObjectTypeRef(relationshipType.getIdentityObjectTypeRef());
relMD.setRelationshipTypeRef(relationshipType.getRelationshipTypeRef());
relationships.add(relMD);
}
}
identityObjectTypeMD.setRelationships(relationships);