private GBeanMBean loadConfig(File unpackedCar, ClassLoader classLoader) throws Exception {
InputStream in = new FileInputStream(new File(unpackedCar, "META-INF/config.ser"));
try {
ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(in));
GBeanData config = new GBeanData();
config.readExternal(ois);
return new GBeanMBean(config, classLoader);
} finally {
in.close();
}
}