SootMethod clinitMethod;
Body clinitBody;
if (_modelClass.declaresMethodByName("<clinit>")) {
clinitMethod = _modelClass.getMethodByName("<clinit>");
clinitBody = clinitMethod.retrieveActiveBody();
} else {
clinitMethod = new SootMethod("<clinit>", Collections.EMPTY_LIST,
VoidType.v(), Modifier.PUBLIC | Modifier.STATIC);
_modelClass.addMethod(clinitMethod);
clinitBody = Jimple.v().newBody(clinitMethod);