private boolean isIPTResourceFolder(File dir){
  if (dir.exists() && dir.isDirectory()) {
    File persistenceFile=new File(dir,PERSISTENCE_FILE);
    File emlFile=new File(dir,DataDir.EML_XML_FILENAME);
    return persistenceFile.isFile() && emlFile.isFile();
  }
  return false;
}

private boolean isIPTResourceFolder ( File dir ) { if ( dir . exists ( ) && dir . isDirectory ( ) ) { File persistenceFile = new File ( dir , PERSISTENCE_FILE ) ; File emlFile = new File ( dir , DataDir . EML_XML_FILENAME ) ; return persistenceFile . isFile ( ) && emlFile . isFile ( ) ; } return false ; }
determine whether the directory represents an ipt resource directory or not . to qualify , directory must contain at least a resource . xml and eml . xml file .
