code: public static PageParameters toPageParameters(final Map<String, String> parameters)
  	{
  		final PageParameters param = new PageParameters();
  		for (final Entry<String, String> parameter : parameters.entrySet())
  		{
  			param.add(parameter.getKey(), parameter.getValue());
  		}
  		return param;
  	}
docs: Converts the given Map to a {@link PageParameters} object.
  
  @param parameters
  the {@link Map} with the parameters to set.
  @return the {@link PageParameters}