* the environment variables.
* @param agentClassName
*/
public static AgentLoader loadAgent(String agentClassName) {
AgentInterface agent = null;
try {
//Have to use the system classloader because if the codec is installed,
//class.forName will use the ext classloader which won't find your classes.
agent = (AgentInterface) ClassLoader.getSystemClassLoader().loadClass(agentClassName).newInstance();
} catch (Exception ex) {