ret.addComponent(entry.getKey(),
<BUG>Integer.valueOf(entry.getValue()));
}</BUG>
return ret;
<BUG>} catch (Exception e) {
return null;</BUG>
}
}
public static String getStringFromJson(String text) {
return text.equals("null") ? null : text;

ret.addComponent(entry.getKey(),
JStormUtils.parseInt(entry.getValue()));
}
return ret;
} catch (Exception e) {
LOG.error("Failed to convert to WorkerAssignment,  raw:" + obj, e);
return null;
}
}
public static String getStringFromJson(String text) {
return text.equals("null") ? null : text;
