src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java
public static StorageExt getLocalStorage() {
    if (localStorage == null && Storage.isLocalStorageSupported()) {
      localStorage = new StorageExt(Storage.getLocalStorageIfSupported());
    }
    return localStorage;
  }
public static StorageExt getLocalStorage() {
    if (localStorage == null && Storage.isLocalStorageSupported()) {
      localStorage = new StorageExt(Storage.getLocalStorageIfSupported());
    }
    return localStorage;
  }
public static StorageExt getLocalStorage ( ) { if ( localStorage == null && Storage . isLocalStorageSupported ( ) ) { localStorage = new StorageExt ( Storage . getLocalStorageIfSupported ( ) ) ; } return localStorage ; }
Returns a Local Storage.

@return the localStorage instance, or <code>null</code> if Web Storage is NOT supported.
Returns a Local Storage .