code: private static Object[] getParams(Context context, Object... arguments)
      {
          final Collection<Object> params = new ArrayList<>(1);
          params.add(context);
          params.addAll(Arrays.asList(arguments));
          return params.toArray();
      }
docs: Get the parameter as array.
  
  @param context The context reference.
  @param arguments The arguments list.
  @return The arguments array.