Collection<Annotation> values = annotationRepository.getAnnotation(ConnectionDefinitions.class);
if (values != null)
{
if (values.size() == 1)
{
Annotation annotation = values.iterator().next();
ConnectionDefinitions c = (ConnectionDefinitions)annotation.getAnnotation();
if (trace)
log.trace("Processing: " + c);
md = attachConnectionDefinitions(md , c, annotation.getClassName());
}
else
throw new ValidateException("More than one @ConnectionDefinitions defined");
}