public void setStubWrapper(UserCodeWrapper<?> wrapper) { try { InstantiationUtil.writeObjectToConfig(wrapper, this.config, STUB_OBJECT); } catch (IOException e) { throw new CorruptConfigurationException( "Could not write the user code wrapper " + wrapper.getClass() + " : " + e.toString(), e); } }