[SOLVED]How to skinning a model with pure Java code?

I write a new class CreateAnimationHW. It uses both software and hardware skinning animation.

For hardware skinning I need Type.HWBoneIndex and Type.HWBoneWeight, then call SkeletonControl.setHardwareSkinningPreferred(true);

Also I reorganized the source code, It looks much better for me.
Here it is:

Are you doing something like this?