private boolean isAutoStartable(String className, BaseData bundledata) { EclipseStorageHook storageHook = (EclipseStorageHook) bundledata.getStorageHook(EclipseStorageHook.KEY);
private boolean isAutoStartable(String className, BaseData bundledata, EclipseStorageHook storageHook) {
	private boolean isAutoStartable(String className, BaseData bundledata) {		EclipseStorageHook storageHook = (EclipseStorageHook) bundledata.getStorageHook(EclipseStorageHook.KEY);		if (storageHook == null)			return false;		boolean autoStart = storageHook.isAutoStart();		String[] autoStartExceptions = storageHook.getAutoStartExceptions();		// no exceptions, it is easy to figure it out		if (autoStartExceptions == null)			return autoStart;		// otherwise, we need to check if the package is in the exceptions list		int dotPosition = className.lastIndexOf('.');		// the class has no package name... no exceptions apply		if (dotPosition == -1)			return autoStart;		String packageName = className.substring(0, dotPosition);		// should activate if autoStart and package is not an exception, or if !autoStart and package is exception		return autoStart ^ contains(autoStartExceptions, packageName);	}