}
return null;
}
public void setData(String JSON){
UsageDataFrame df;
// om.setVisibility(JsonMethod.FIELD, JsonAutoDetect.Visibility.ANY);
try {
df = om.readValue(JSON, UsageDataFrame.class);
if ( df.getFrameType() == UsageDataFrame.FULL_UPDATE ){
this.data.setData(df.getData());
} else if ( df.getFrameType() == UsageDataFrame.INCREMENTAL_UPDATE ){
this.data.addData(df.getData());
}
setChanged(true);
} catch (IOException ex) {
Logger.getLogger(DataBehaviorLogic.class.getName()).log(Level.SEVERE, null, ex);
}