Using reflection to set id