Object bpObj = rtSvc.getVariable(execId,"jenkow_build_parent");
Object bnObj = rtSvc.getVariable(execId,"jenkow_build_number");
if (bpObj instanceof String && bnObj instanceof Integer){
String parentJobName = (String)bpObj;
int buildNum = ((Integer)bnObj).intValue();
TopLevelItem it = Jenkins.getInstance().getItem(parentJobName);
if (it instanceof Project){
parentProj = (Project)it;
Run build = parentProj.getLastBuild();
if (build != null){
if (build.getNumber() == buildNum){