public void configureAdapter(InputStream is)
     throws IOException, MalformedURLException, ConfigurationException, DuplicateRealmException,
         NoSuchRealmException {
   try {
     config.configure(is);
   } catch (org.codehaus.plexus.classworlds.launcher.ConfigurationException e) {
     throw new ConfigurationException(e.getMessage());
   } catch (org.codehaus.plexus.classworlds.realm.DuplicateRealmException e) {
     throw new DuplicateRealmException(ClassWorldAdapter.getInstance(e.getWorld()), e.getId());
   } catch (org.codehaus.plexus.classworlds.realm.NoSuchRealmException e) {
     throw new NoSuchRealmException(ClassWorldAdapter.getInstance(e.getWorld()), e.getId());
   }
 }
 public void associateRealms() {
   config.associateRealms();
 }