}
@SuppressWarnings("rawtypes")
@Override
public Entity getEntity(Map params) {
EventFiles event = new EventFiles();
event.setName((String) params.get(ParamsConst.NAME));
event.setPeriodicity((Integer)params.get(ParamsConst.PERIODICITY));
if (params.get(ParamsConst.EXPIRATION)!=null){
event.setExpiration(new Date((Long)params.get(ParamsConst.EXPIRATION)));
}
event.setIterations((Integer)params.get(ParamsConst.ITERATIONS));
event.setPath((String) params.get(ParamsConst.PATH));
event.setControlType(new Integer((String) params.get(ParamsConst.CONTROL_TYPE)));
return event;
}