}
public static PlayOrmMonitor copy(MonitorDbo monitor) {
if(monitor == null)
return null;
PlayOrmMonitor mon = new PlayOrmMonitor();
mon.setId(monitor.getId());
mon.setTimePeriodMillis(monitor.getTimePeriodMillis());
String props = monitor.getRawProperties();
String[] propsArray = props.split("\\|");
for(String prop : propsArray) {
String[] kv = prop.split("=");
mon.addProperty(kv[0], kv[1]);
}
return mon;
}