static boolean checkMETAINFFolder(IProject project) throws CoreException {
        IPath outputLocation = getOutputLocation(project);
        IFolder binFolder = ResourcesPlugin.getWorkspace().getRoot().getFolder(outputLocation);
        if (!binFolder.exists()) {
            if (DEBUG) {
                debug("Creating bin folder"); //$NON-NLS-1$
            }
            binFolder.create(true, true, null);
            return false;
        } else {
            if (DEBUG) {
                debug("Refreshing bin folder"); //$NON-NLS-1$
            }
            binFolder.refreshLocal(IResource.DEPTH_ONE, null);
        }
        IFolder binaryMetaInf = binFolder.getFolder(META_INF);
        if (!binaryMetaInf.exists()) {
            if (DEBUG) {
                debug("Creating bin/META-INF"); //$NON-NLS-1$
            }
            binaryMetaInf.create(true, true, null);
            return false;
        } else {
            if (DEBUG) {
                debug("bin/META-INF already exists, refreshing"); //$NON-NLS-1$
            }
            binaryMetaInf.refreshLocal(IResource.DEPTH_INFINITE, null);
        }
        IFile binaryManifest = binaryMetaInf.getFile(MANIFEST_MF);
        if (!binaryManifest.exists()) {
            if (DEBUG) {
                debug("bin/META-INF/MANIFEST.MF does not exist"); //$NON-NLS-1$
            }
            return false;
        }
        return true;
    }