public boolean hasTrait(final StoreTrait storeTrait){
  final Set<StoreTrait> traits=getTraits();
  return null != traits && traits.contains(storeTrait);
}

public boolean hasTrait ( final StoreTrait storeTrait ) { final Set < StoreTrait > traits = getTraits ( ) ; return null != traits && traits . contains ( storeTrait ) ; }
returns true if the store can handle the provided trait and false if it cannot .
