private static Object createAndPopulateVarArgsArray ( Class < ? > varArgsType , int varArgsStartPosition , Object ... arguments ) { Object arrayInstance = Array . newInstance ( varArgsType , arguments . length - varArgsStartPosition ) ; for ( int i = varArgsStartPosition ; i < arguments . length ; i ++ ) { Array . set ( arrayInstance , i - varArgsStartPosition , arguments [ i ] ) ; } return arrayInstance ; }
Creates the and populate var args array .