public boolean exists(MonKey key){
  return map.containsKey(key);
}

public boolean exists ( MonKey key ) { return map . containsKey ( key ) ; }
note this works with local , however when it is put into the map by combining multiple monitorcomposites that have the same key ( for example on different instances ) it does not currently work .
