errorLog.writeBytes(com.bbn.openmap.MapBean.getCopyrightMessage());
errorLog.writeBytes(getMapBeanMessage());
    public static void error(String errorString){	try {	    if (errorLog == null){		// If no errors have happened yet, this will get run.		if (errorFile != null){		    FileOutputStream log = new FileOutputStream(errorFile.getPath(), errorAppend);		    errorLog = new DataOutputStream(log);		    // Lets make introductions into the error file,		    // shall we?		    errorLog.writeBytes("\n");		    errorLog.writeBytes(com.bbn.openmap.MapBean.getCopyrightMessage());		    errorLog.writeBytes("\n");		    errorLog.writeBytes("ERROR log file - " + 					java.util.Calendar.getInstance().getTime());		    errorLog.writeBytes("\n");		    errorLog.writeBytes(ERROR_TAIL);		    errorLog.writeBytes(ERROR_TAIL);		    errorLog.writeBytes(ERROR_TAIL);		    errorLog.writeBytes("\n");		    /////////////////////		    errorLog.writeBytes(ERROR_HEADER);		    errorLog.writeBytes(errorString);		    errorLog.writeBytes("\n");		    errorLog.writeBytes(ERROR_TAIL);		    errorLog.writeBytes("\n");		}	    } else {		// With the log already set up, this should get run.		errorLog.writeBytes(ERROR_HEADER);		errorLog.writeBytes("\n");		errorLog.writeBytes(errorString);		errorLog.writeBytes("\n");		errorLog.writeBytes(ERROR_TAIL);				errorLog.writeBytes("\n");	    }	} catch (IOException ioe){	    // If something goes wrong, set the output to the	    // System.err only, and hope someone sees it.	    errorFile = null;	    notifyErr = true;	    err = System.err;	    err.println(ERROR_HEADER);	    err.println("Debug: error writing <" + errorString + 			"> to log! \n" + ioe);	    err.println(ERROR_TAIL);	    return;	}		// Write to the error stream if required.	if (notifyErr){	    err.println(ERROR_HEADER);	    err.println(errorString);	    err.println(ERROR_TAIL);	}    }