code: @SuppressWarnings("rawtypes")
      @Override
      public void prepare(Map conf, TopologyContext context)
      {
          this.componentInfo = new ComponentInfo(context.getThisComponentId(),
                  context.getThisTaskId());
  
          int workerPort = context.getThisWorkerPort();
          int portAdjust = DEFAULT_PORT_ADJUST;
          if (conf.containsKey("log.server.port.adjust"))
          {
              portAdjust = Integer.parseInt(conf.get("log.server.port.adjust").toString());
          }
  
          int serverPort = workerPort + portAdjust;
          AmLogServerAdapter.getInstance().init(serverPort);
      }
docs: {@inheritDoc}