consolidate jvm field getter / setter common structure