public Object command(final String language, final String iText, final Object[] iArgs) {
Object result = null;
if (language.equalsIgnoreCase("sql"))
result = graph.command(new OCommandSQL(iText)).execute(iArgs);
else if (language.equalsIgnoreCase("gremlin"))
result = graph.command(new OCommandGremlin(iText)).execute(iArgs);
else
result = graph.command(new OCommandScript(language, iText)).execute(iArgs);
if (result instanceof Iterable<?>) {
// FOR SAKE OF SIMPLICITY TRANSFORM ANY ITERABLE IN ARRAY