Corrected type conversions for mapRelationId in releaseHandler