code: public static ResourceResolutionComponent[] resolve(Object... resolutionParams) {
          ResourceResolutionComponent[] components = new ResourceResolutionComponent[resolutionParams.length];
          for (int i = 0; i < resolutionParams.length; i++) {
              if (resolutionParams[i] == null) {
                  components[i] = new StringResolutionComponent("");
              } else if (resolutionParams[i] instanceof ResourceResolutionComponent) {
                  components[i] = (ResourceResolutionComponent) resolutionParams[i];
              } else if (resolutionParams[i] instanceof Locale) {
                  components[i] = new LocaleResolutionComponent((Locale) resolutionParams[i]);
              } else if (resolutionParams[i] instanceof String) {
                  components[i] = new StringResolutionComponent((String) resolutionParams[i]);
              } else if (resolutionParams[i] instanceof String[]) {
                  components[i] = new StringResolutionComponent((String[]) resolutionParams[i]);
              } else {
                  components[i] = new StringResolutionComponent(String.valueOf(resolutionParams[i]));
              }
          }
  	    return components;
      }
docs: Helper method to wrap varags into array with {@link #context(ResourceResolutionComponent[],Map)}
  @param resolutionParams
  @since 3.1
  @return