code: @Override
    public IAgentConfiguration parse(Configuration agentConfiguration) throws InternalException {
      if (agentConfiguration == null) {
        return null;
      }
      AgentConfigurationImpl conf = new AgentConfigurationImpl();
      try {
  
        conf.properties = new Properties();
        Configuration[] propConfs = agentConfiguration.getChildren(Properties.ordinal());
        for (Configuration c : propConfs) {
  
          conf.properties.put(c.getStringValue(PropertyName.ordinal(), ""), c.getStringValue(PropertyValue.ordinal(), ""));
        }
      }
      catch (Exception e) {
        throw new InternalException(e);
      }
      return conf;
    }
docs: /*
  (non-Javadoc)
  
  @see org.jdiameter.server.api.agent.IAgentConfiguration#parse(org.jdiameter .api.Configuration)