}
public void destroyInstance(Object instance) throws IllegalAccessException, InvocationTargetException {
final ManagedReference reference = instanceMap.remove(instance);
if (reference != null) {
reference.release();
}
}
public Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException {
return newInstance(classloader.loadClass(className));