}
if ( cowRelationshipAddMap != null )
{
for ( String type : cowRelationshipAddMap.keySet() )
{
RelIdArray add = cowRelationshipAddMap.get( type );
RelIdArray remove = null;
if ( cowRelationshipRemoveMap != null )
{
remove = cowRelationshipRemoveMap.get( type );
}
RelIdArray src = relationshipMap.get( type );
relationshipMap.put( type, RelIdArray.from( src, add, remove ) );
}
}
if ( cowRelationshipRemoveMap != null )
{
for ( String type : cowRelationshipRemoveMap.keySet() )
{
if ( cowRelationshipAddMap != null &&
cowRelationshipAddMap.get( type ) != null )
{
continue;
}
RelIdArray src = relationshipMap.get( type );
RelIdArray remove = cowRelationshipRemoveMap.get( type );
relationshipMap.put( type, RelIdArray.from( src, null, remove ) );
}
}
}