public Object newInstance(Class javaContentInterface) throws JAXBException {
  if (javaContentInterface == null) {
    throw new JAXBException(Messages.format(Messages.CI_NOT_NULL));
  }
  try {
    Class c=gi.getDefaultImplementation(javaContentInterface);
    if (c == null)     throw new JAXBException(Messages.format(Messages.MISSING_INTERFACE,javaContentInterface));
    return c.newInstance();
  }
 catch (  Exception e) {
    throw new JAXBException(e);
  }
}

public Object newInstance ( Class javaContentInterface ) throws JAXBException { if ( javaContentInterface == null ) { throw new JAXBException ( Messages . format ( Messages . CI_NOT_NULL ) ) ; } try { Class c = gi . getDefaultImplementation ( javaContentInterface ) ; if ( c == null ) throw new JAXBException ( Messages . format ( Messages . MISSING_INTERFACE , javaContentInterface ) ) ; return c . newInstance ( ) ; } catch ( Exception e ) { throw new JAXBException ( e ) ; } }
create an instance of the specified java content interface .
