public static OServerCommand createCommand(final OServer server, final OServerCommandConfiguration iCommand) {
try {
final Constructor<OServerCommand> c = (Constructor<OServerCommand>) Class.forName(iCommand.implementation).getConstructor(
OServerCommandConfiguration.class);
final OServerCommand cmd = c.newInstance(new Object[] { iCommand });
cmd.configure(server);
return cmd;
} catch (Exception e) {
throw new IllegalArgumentException("Cannot create custom command invoking the constructor: " + iCommand.implementation + "("
+ iCommand + ")", e);
}