// for this persistence unit. Its inclusion therefore in this
// persistence unit is through the use of an Embedded annotation
// or an embedded element within a known entity. Therefore validate
// that the reference class does indeed have an Embeddable
// annotation.
MetadataClass metadataClass = new MetadataClass(getReferenceClass());
if (metadataClass.isAnnotationNotPresent(Embeddable.class)) {
throw ValidationException.invalidEmbeddedAttribute(getJavaClass(), getAttributeName(), getReferenceClass());
} else {
accessor = new EmbeddableAccessor(metadataClass.getAnnotation(Embeddable.class), getReferenceClass(), getProject());
getProject().addEmbeddableAccessor(accessor);
}
}
if (accessor.isProcessed()) {