code: public DocumentRepository asDocumentRepository(EnvironmentType env, String user, String pwd) throws Exception 
  	{
  	    return (DocumentRepository)new FactoryConverter().convert(type.asFactoryArguments(this, env, true, user, pwd));
  	}
docs: <p>asDocumentRepository.</p>
  
  @param env a {@link com.greenpepper.server.domain.EnvironmentType} object.
  @param user a {@link java.lang.String} object.
  @param pwd a {@link java.lang.String} object.
  @return a {@link com.greenpepper.repository.DocumentRepository} object.
  @throws java.lang.Exception if any.