protected Object newInstance(Class c) throws SQLException {
  try {
    return c.newInstance();
  }
 catch (  InstantiationException e) {
    throw new SQLException("Cannot create " + c.getName() + ": "+ e.getMessage());
  }
catch (  IllegalAccessException e) {
    throw new SQLException("Cannot create " + c.getName() + ": "+ e.getMessage());
  }
}

protected Object newInstance ( Class c ) throws SQLException { try { return c . newInstance ( ) ; } catch ( InstantiationException e ) { throw new SQLException ( "Cannot create " + c . getName ( ) + ": " + e . getMessage ( ) ) ; } catch ( IllegalAccessException e ) { throw new SQLException ( "Cannot create " + c . getName ( ) + ": " + e . getMessage ( ) ) ; } }
factory method that returns a new instance of the given class . this is called at the start of the bean creation process and may be overridden to provide custom behavior like returning a cached bean instance .
