public void restoreState() {
		String memberStr = keyValStore.getValue(keyValStoreName);
		if (null != memberStr) {
			// The member was found in the key value store, so restore the
			// state.
			byte[] serialized = Hex.decode(memberStr);
			ByteArrayInputStream bis = new ByteArrayInputStream(serialized);
			try {
				ObjectInputStream ois = new ObjectInputStream(bis);
				Member state = (Member)ois.readObject();
				if (state != null) {
					this.name = state.name;
			        this.roles = state.roles;
			        this.account = state.account;
			        this.affiliation = state.affiliation;
			        this.enrollmentSecret = state.enrollmentSecret;
			        this.enrollment = state.enrollment;
				} else {
					logger.debug(String.format("Could not find member %s from keyvalue store", this.name));
				}
			} catch (IOException | ClassNotFoundException e) {
				logger.debug(String.format("Could not restore state of member %s", this.name), e);
			}
		}
   }
public void restoreState ( ) { String memberStr = keyValStore . getValue ( keyValStoreName ) ; if ( null != memberStr ) { byte [ ] serialized = Hex . decode ( memberStr ) ; ByteArrayInputStream bis = new ByteArrayInputStream ( serialized ) ; try { ObjectInputStream ois = new ObjectInputStream ( bis ) ; Member state = ( Member ) ois . readObject ( ) ; if ( state != null ) { this . name = state . name ; this . roles = state . roles ; this . account = state . account ; this . affiliation = state . affiliation ; this . enrollmentSecret = state . enrollmentSecret ; this . enrollment = state . enrollment ; } else { logger . debug ( String . format ( "Could not find member %s from keyvalue store" , this . name ) ) ; } } catch ( IOException | ClassNotFoundException e ) { logger . debug ( String . format ( "Could not restore state of member %s" , this . name ) , e ) ; } } }
Restore the state of this member from the key value store (if found).  If not found, do nothing.