private static void validateNoCollectionPropertyAnnotation(
com.codiform.moo.annotation.CollectionProperty annotation,
String propertyName, Class<?> declaringClass) {
if( annotation != null ) {
throw new InvalidAnnotationException(
"The property %s on class %s is not a collection and should not be annotated with @CollectionProperty; use @Property instead.",
propertyName, declaringClass );
}
}