This method uses reflection to create a new instance of the class defined
as String. It checks that the configured class matches the type which is
requested. It looks for a static method which is callable with the
specified arguments and uses that to create an instance.
-
Reflection is rather costly and therefore this method should not be used
very often.
-
Since types and therefore type safety can only be checked at compile time,
this method may fail at runtime for any mistake in configuration.
-
Primitive types as arguments of the static method are currently not
supported