public void addAnnotation(Method ann) throws ObjectStoreConfigException {
  if (annotations.containsKey(ann))   throw new ObjectStoreConfigException(ann.toString() + " can only be added once");
  annotations.put(ann,null);
}

public void addAnnotation ( Method ann ) throws ObjectStoreConfigException { if ( annotations . containsKey ( ann ) ) throw new ObjectStoreConfigException ( ann . toString ( ) + " can only be added once" ) ; annotations . put ( ann , null ) ; }
associates this annotation with its annotated type .
