}
@SuppressWarnings("rawtypes")
@Override
public Entity getEntity(Map params) {
EventLDAP event = new EventLDAP();
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.setCode((String) params.get(ParamsConst.CODE));
return event;
}