Make getterMethod and Field initialization more robust