public void addAnnotation(Method ann,URI type) throws ObjectStoreConfigException {
  List<URI> list=annotations.get(ann);
  if (list == null && annotations.containsKey(ann))   throw new ObjectStoreConfigException(ann.toString() + " can only be added once");
  if (list == null) {
    annotations.put(ann,list=new LinkedList<URI>());
  }
  list.add(type);
}

public void addAnnotation ( Method ann , URI type ) throws ObjectStoreConfigException { List < URI > list = annotations . get ( ann ) ; if ( list == null && annotations . containsKey ( ann ) ) throw new ObjectStoreConfigException ( ann . toString ( ) + " can only be added once" ) ; if ( list == null ) { annotations . put ( ann , list = new LinkedList < URI > ( ) ) ; } list . add ( type ) ; }
associates this annotation with the given type .
