if (getManifestMainClass() == null) return true; try {  IResource resource= getManifestMainClass().getUnderlyingResource(); if (resource == null || !JarPackagerUtil.asResources(getElements()).contains(resource)) return false;   return JavaModelUtil.hasMainMethod(getManifestMainClass()); } catch (JavaModelException e) { JavaPlugin.log(e.getStatus()); } return false;
return JarPackagerUtil.isMainClassValid(this, context);
	public boolean isMainClassValid(IRunnableContext context) {		if (getManifestMainClass() == null)			return true;		try {				// Check if main method is in scope			IResource resource= getManifestMainClass().getUnderlyingResource();			if (resource == null || !JarPackagerUtil.asResources(getElements()).contains(resource))				return false;						// Test if it has a main method			return JavaModelUtil.hasMainMethod(getManifestMainClass());		} catch (JavaModelException e) {			JavaPlugin.log(e.getStatus());		}		return false;	}