if (isEntityType(annotatedType)) {
metadata = createEntityTypeMetadata(annotatedType, superTypes, methodMetadataOfType);
} else if (isRelationType(annotatedType)) {
metadata = createRelationTypeMetadata(annotatedType, superTypes, methodMetadataOfType);
} else {
metadata = new SimpleTypeMetadata(annotatedType, superTypes, methodMetadataOfType);
}
return metadata;
}