xml output if ".xml" found in the end of rest entity name