code: private void validatePermissions(final File dirPath, final File file) {
  
          // Check execute and read permissions for parent dirPath
          if( !dirPath.canExecute() || !dirPath.canRead()  ) {
              validFilePermissions = false;
              filePermissionsProblemPath = dirPath.getAbsolutePath();
              return;
          }
  
          // Check read and write permissions for properties file
          if( !file.canRead() || !file.canWrite() ) {
              validFilePermissions = false;
              filePermissionsProblemPath = dirPath.getAbsolutePath();
          }
  
      }
docs: This method performs a series of permissions checks given a directory and properties file path.
  
  1 - Check whether the parent directory dirPath has proper execute and read permissions
  2 - Check whether properties file path is readable and writable
  
  If either of the permissions checks fail, update validFilePermissions and filePermissionsProblemPath
  appropriately.