code: public static IModel<String> newResourceModel(final String resourceKey,
  		final Component component, final IModel<?> model, final String defaultValue,
  		final Object... parameters)
  	{
  		if ((parameters != null) && (parameters.length > 0))
  		{
  			for (int i = 0; i < parameters.length; i++)
  			{
  				if ((parameters[i] != null) && (parameters[i] instanceof ResourceBundleKey))
  				{
  					final ResourceBundleKey parameter = (ResourceBundleKey)parameters[i];
  					final IModel<String> parameterValue = newResourceModel(parameter, component);
  					parameters[i] = parameterValue.getObject();
  				}
  			}
  		}
  		return new StringResourceModel(resourceKey, component, model).setDefaultValue(defaultValue)
  			.setParameters(parameters);
  	}
docs: Factory method to create a new {@link StringResourceModel} from the given arguments.
  
  @param resourceKey
  the resource key
  @param component
  the component
  @param model
  the model
  @param defaultValue
  the default value
  @param parameters
  the parameters
  @return a new {@link StringResourceModel} as an {@link IModel}