checking for duplicate app id before converting in rest EP