*/
public Annotation[] getAnnotations(final String name, final JavaMethod method) {
DocletTag[] tags = method.getTags();
List annotations = new ArrayList();
for (int i = 0; i < tags.length; i++) {
DocletTag tag = tags[i];
String tagName = tag.getName().trim();
String value = Strings.removeFormattingCharacters(tag.getValue().trim());
if (name.equals(tagName) && m_registeredAnnotations.containsKey(tagName)) {
Class proxyClass = (Class) m_registeredAnnotations.get(tagName);
Annotation annotation;
try {
annotation = (Annotation) proxyClass.newInstance();