protected static <T extends Extension>T createExtensionInstance(Class<T> extClass) throws ParseException {
  try {
    return extClass.newInstance();
  }
 catch (  InstantiationException e) {
    throw new ParseException(CoreErrorDomain.ERR.cantCreateExtension,e);
  }
catch (  IllegalAccessException e) {
    throw new ParseException(CoreErrorDomain.ERR.cantCreateExtension,e);
  }
}

protected static < T extends Extension > T createExtensionInstance ( Class < T > extClass ) throws ParseException { try { return extClass . newInstance ( ) ; } catch ( InstantiationException e ) { throw new ParseException ( CoreErrorDomain . ERR . cantCreateExtension , e ) ; } catch ( IllegalAccessException e ) { throw new ParseException ( CoreErrorDomain . ERR . cantCreateExtension , e ) ; } }
creates an instance of the given extension class .
