code: @SuppressWarnings("unchecked")
      public final Object createInstance(final Class clasz, final Class[] argTypes,
              final Object[] initArgs) {
          try {
              final Constructor constructor = clasz.getConstructor(argTypes);
              return constructor.newInstance(initArgs);
          } catch (final NoSuchMethodException ex) {
              throw new RuntimeException(ex);
          } catch (final InstantiationException ex) {
              throw new RuntimeException(ex);
          } catch (final IllegalAccessException ex) {
              throw new RuntimeException(ex);
          } catch (final InvocationTargetException ex) {
              throw new RuntimeException(ex);
          }
  
      }
docs: Creates an instance mapping all exceptions into
  <code>RuntimeException</code>.
  
  @param clasz
  Class to create an instance for.
  @param argTypes
  Argument types of the constructor to use.
  @param initArgs
  Argument values for the constructor.
  
  @return New instance.