if( new File(existHome, "lib/core").isDirectory() ) {
File core = Configuration.lookup("lib/core"); if (core != null && core.isDirectory()) {
    public boolean isInWarFile(){                boolean retVal =true;        if( new File(existHome, "lib/core").isDirectory() ) {            retVal=false;        }        return retVal;    }