/*
   * (non-Javadoc)
   *
   * @see pt.consulting.grlp.container.IContainer#initTask(long, long)
   */
  @Override
  public Timer initTask(long delay, long period) {
    log = ResourceConfig.getInstance().createLog("container");
    log.info(this + ":Persistence Unit Name: " + service.getUnitName());
    /*
     * load growller map
     */
    loadGrowllerMap();

    return schedule(delay, period);
  }
 /**
  * Task to load the {@link Growllers} map structure.
  *
  * @throws Exception
  */
 private void loadGrowllerMap() {
   List<Growllers> growllerList;
   log.info(this + ":loadGrowllerMap:Init");
   try {
     growllerList = service.findAllGrowllers();
     if (null != growllerList) {
       int id;
       String token;
       synchronized (growllerMap) {
         growllerMap.clear();
         for (Growllers growller : growllerList) {
           id = growller.getId();
           token = growller.getToken();
           growllerMap.put(id, token);
           log.info("Loaded:{" + id + ":" + token + "}");
         }
       }
     }
   } catch (Exception e) {
     throw new RuntimeException("Load Growller Map fail: ", e);
   }
   log.info(this + ":loadGrowllerMap:End");
 }