EncapsulateFieldClass now working for JavaModel too.