code: public String asFactoryArguments(Repository repository, EnvironmentType env, boolean withStyle, String user, String pwd) 
  	{
      	StringBuilder sb = new StringBuilder();
      	sb.append(getRepositoryTypeClass(env)).append(";");
      	sb.append(withStyle || name.equals("FILE") ? repository.getBaseTestUrl() : withNoStyle(repository.getBaseTestUrl()));
  
      	if(user == null)
      	{
      		if(!StringUtil.isEmpty(repository.getUsername()))
      			sb.append(";").append(repository.getUsername()).append(";").append(escapeSemiColon(repository.getPassword()));
      	}
      	else
      	{
              sb.append(";").append(user).append(";").append(escapeSemiColon(pwd));
      	}
      	
  		return sb.toString();
  	}
docs: <p>asFactoryArguments.</p>
  
  @param repository a {@link com.greenpepper.server.domain.Repository} object.
  @param env a {@link com.greenpepper.server.domain.EnvironmentType} object.
  @param withStyle a boolean.
  @param user a {@link java.lang.String} object.
  @param pwd a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.