Initial attempt to use Javassist in StructureEncoder