package mx.com.geexco.test.undertow.us.dao;

import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import mx.com.geexco.test.undertow.us.dto.RegistrationDTO;

/**
 *
 * @author gxc-mg
 */
public class RegistrationSource {

    private final Map<String, String> map = new HashMap<>();

    public void register(RegistrationDTO reg) {
        map.put(reg.getId(), reg.getDevice());
    }

    public Map getMap(){
        return this.map;
    }

    public String []getDeviceIds(String[] ids) {
        List<String> devices=new ArrayList<String>();
        for(String id:ids){
            String dev=map.get(id);
            if(dev!=null){
                devices.add(dev);
            }
        }
        return (String[])devices.toArray();
    }

}

@@ -202,16 +202,75 @@
 ionDTO;%0D
+%0Aimport org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;%0D
 %0A%0D%0A/**%0D%0A
@@ -331,16 +331,82 @@
 ource %7B%0D
+%0A    %0D%0A    Logger log = LoggerFactory.getLogger(this.getClass());%0D
 %0A%0D%0A    p
@@ -781,29 +781,90 @@
     
-String dev=map.get(id
+log.info(id);%0D%0A            String dev=map.get(id);%0D%0A            log.info(%22%3E%3E%3E%22+dev
 );%0D%0A

Update RegistrationSource.java