{
Constructor<?> cons = getConstructor( graphClass, new Class[] {ReificationStyle.class} );
if (cons != null) return (Graph) cons.newInstance( new Object[] { style } );
Constructor<?> cons2 = getConstructor( graphClass, new Class [] {this.getClass(), ReificationStyle.class} );
if (cons2 != null) return (Graph) cons2.newInstance( new Object[] { this, style } );
throw new JenaException( "no suitable graph constructor found for " + graphClass );
}
catch (RuntimeException e)
{ throw e; }
catch (Exception e)
{ throw new JenaException( e ); }
}