private boolean checkPropertyFile(File propertieFile) {
        boolean properFileFlag = true;
        Properties props = new Properties();
        String reqKey = "";
        boolean foundConversionPattern=false;
        try {
            FileInputStream fis = new FileInputStream(propertieFile);
            // read the property file
            props.load(fis);

            // getting key set from file, saving key set for later iteration
            NewJFrame.propKeySet = props.keySet();

            // if file don't begin with log4j standard key format return false
            if(! ( propKeySet.toArray()[0].toString().toLowerCase().contains("log4j") ) ){
                System.out.println(propKeySet.toArray()[0].toString());
                return false;
            }
            System.out.println("whle key set :: "+propKeySet.toString());
            String fileAppenderrKey="";
            // first iteration through property file to get req. key
            for (Iterator iterator1 = propKeySet.iterator(); iterator1 .hasNext();) {
                String key = (String) iterator1.next();
                
                if (props.getProperty(key).toLowerCase().endsWith("fileappender")) {
                    System.out.println("in fileappedner>> " + key);
                    fileAppenderrKey = key;
                    
//                    System.out.println("prop chcek>> " + props.getProperty(key + ".File"));
//
//                    if (props.getProperty(key + ".File").toLowerCase()
//                            .endsWith(logFileName)) {
//                        System.out.println("Got required key, breaking >>" + key);
//                        reqKey = key;
//                        foundReqKeyFlag = true;
//                        break;
//                    }
                }
                if(key.equalsIgnoreCase(fileAppenderrKey+".layout.conversionPattern"))
                { System.out.println("key>> "+key);
                conversionPattern = props.getProperty(key);

                    System.out.println("req. conversion pattern is " + conversionPattern);
                foundConversionPattern=true;
                }
            }

            // method return if conversion pattern is found, if not probably key's not properly ordered
            if(foundConversionPattern){
                return true;
            }
            
            // second iteration to get conversion pattern
            for (Iterator iterator2 = NewJFrame.propKeySet.iterator(); iterator2.hasNext();) {

                String key = (String) iterator2.next();

                System.out.println(key + "<< >>" + props.getProperty(key));

                if (key.startsWith(reqKey) && key.toLowerCase().contains((".layout.conversionpattern"))) {
                    // System.out.println(object1);
                    conversionPattern = props.getProperty(key);

                    System.out.println("req. conversion pattern is " + conversionPattern);
                    properFileFlag = true;
                    break;
                }
            }

            // very essential close of input stream.
            fis.close();

        } catch (IOException e) {
            e.printStackTrace();
        }
        return properFileFlag;
    }