protected static String resolveSnapshotName(Snapshot snapshot){
  String persistedName=resolveName(snapshot,null);
  if (persistedName != null)   return persistedName;
  File file=snapshot.getFile();
  if (file == null)   return snapshot.toString();
  String fileName=file.getName();
  SnapshotCategory category=snapshot.getCategory();
  String name="[" + category.getPrefix() + "] "+ fileName;
  if (category.isSnapshot(file)) {
    String timeStamp=category.getTimeStamp(fileName);
    if (timeStamp != null)     name="[" + category.getPrefix() + "] "+ timeStamp;
  }
  return name;
}

protected static String resolveSnapshotName ( Snapshot snapshot ) { String persistedName = resolveName ( snapshot , null ) ; if ( persistedName != null ) return persistedName ; File file = snapshot . getFile ( ) ; if ( file == null ) return snapshot . toString ( ) ; String fileName = file . getName ( ) ; SnapshotCategory category = snapshot . getCategory ( ) ; String name = "[" + category . getPrefix ( ) + "] " + fileName ; if ( category . isSnapshot ( file ) ) { String timeStamp = category . getTimeStamp ( fileName ) ; if ( timeStamp != null ) name = "[" + category . getPrefix ( ) + "] " + timeStamp ; } return name ; }
returns snapshot name if available in snapshot storage as property_name or generates new name using snapshot ' s category .
