public static PbJointType valueOf(int value) {
      switch (value) {
        case 1: return DISTANCE;
        case 2: return REVOLUTE;
        case 3: return PRISMATIC;
        case 4: return PULLEY;
        case 5: return MOUSE;
        case 6: return GEAR;
        case 7: return WHEEL;
        case 8: return WELD;
        case 9: return FRICTION;
        case 10: return ROPE;
        case 11: return CONSTANT_VOLUME;
        case 12: return LINE;
        default: return null;
      }
    }