class AgentConfigs {

  public String prependVMArguments(final String arguments, final File agentJarFile) {
    final List<String> args = CommandLineSupport.split(arguments);
    final String plainAgent = format("-javaagent:%s", agentJarFile);
    for (final Iterator<String> i = args.iterator(); i.hasNext();) {
      if (i.next().startsWith(plainAgent)) {
        i.remove();
      }
    }
    args.add(0, getVMArgument(agentJarFile));
    return CommandLineSupport.quote(args);
  }

  public  AgentConfigs();
  public  AgentConfigs(final String agentConfigs);
  public  AgentConfigs(final Properties properties);

}