/**
* Loads the class envClassName as an rl-glue environment.
* @param envClassName
*/
public static EnvironmentLoader loadEnvironment(String envClassName) {
EnvironmentInterface env = null;
//Had to use the system classloader in case the codec was actually installed.
//If its installed, it uses a different classloader.
try {
env = (EnvironmentInterface) ClassLoader.getSystemClassLoader().loadClass(envClassName).newInstance();