code: private RepositoryEntry getRepositoryEntry(InputStream wEntryStream, String repositoryName)
              throws FileNotFoundException, JiBXException, RepositoryConfigurationException
     {
        IBindingFactory factory = BindingDirectory.getFactory(RepositoryServiceConfiguration.class);
        IUnmarshallingContext uctx = factory.createUnmarshallingContext();
        RepositoryServiceConfiguration conf = (RepositoryServiceConfiguration) uctx.unmarshalDocument(wEntryStream, null);
        RepositoryEntry rEntry = conf.getRepositoryConfiguration(repositoryName);
  
        return rEntry;
     }
docs: getRepositoryEntry.
  
  @param wEntryStream
  InputStream, the workspace configuration
  @return RepositoryEntry
  return the workspace entry
  @throws FileNotFoundException
  will be generated the FileNotFoundException
  @throws JiBXException
  will be generated the JiBXException
  @throws RepositoryConfigurationException
  will be generated the RepositoryConfigurationException