/** Check whenever File is locked */ public static boolean isLocked(SmartFile file) { if (file == null) throw new IllegalArgumentException("file does not Exists"); return file.canLock() && file.isLocked(); }