code: public DocumentRepository newInstance() throws Exception {
          Class<?> klass = Class.forName( type );
          if (!DocumentRepository.class.isAssignableFrom(klass))
              throw new IllegalArgumentException("Not a " + DocumentRepository.class.getName() + ": " + type );
  
          Constructor<?> constructor = klass.getConstructor( String[].class );
          return (DocumentRepository) constructor.newInstance( new Object[]{ StringUtils.split(root,';') } );
      }
docs: <p>newInstance.</p>
  
  @return a {@link com.greenpepper.repository.DocumentRepository} object.
  @throws java.lang.Exception if any.