public static void validateKey(String key) throws StateStoreException {
  if (StringUtils.isBlank(key)) {
    throw new StateStoreException("Key cannot be blank or null");
  }
  if (key.contains("/")) {
    throw new StateStoreException("Key cannot contain '/'");
  }
}

public static void validateKey ( String key ) throws StateStoreException { if ( StringUtils . isBlank ( key ) ) { throw new StateStoreException ( "Key cannot be blank or null" ) ; } if ( key . contains ( "/" ) ) { throw new StateStoreException ( "Key cannot contain '/'" ) ; } }
shared implementation for validating property key limits , for use by all statestore implementations .
