public Detector create(BugReporter bugReporter) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { Constructor constructor = detectorClass.getConstructor(constructorArgTypes); return (Detector) constructor.newInstance(new Object[] {bugReporter});
public Detector create(BugReporter bugReporter) { try { Constructor constructor = detectorClass.getConstructor(constructorArgTypes); return (Detector) constructor.newInstance(new Object[] {bugReporter}); } catch (Exception e) { throw new RuntimeException("Could not instantiate Detector", e); }
	public Detector create(BugReporter bugReporter)		throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {		Constructor constructor = detectorClass.getConstructor(constructorArgTypes);		return (Detector) constructor.newInstance(new Object[] {bugReporter});	}