}
}
// We also need the plural
final JavaType entity = JpaActiveRecordMetadata
.getJavaType(metadataIdentificationString);
final LogicalPath path = JpaActiveRecordMetadata
.getPath(metadataIdentificationString);
final String pluralId = PluralMetadata.createIdentifier(entity, path);
final PluralMetadata pluralMetadata = (PluralMetadata) metadataService
.get(pluralId);
if (pluralMetadata == null) {
// Can't acquire the plural
return null;
}
metadataDependencyRegistry.registerDependency(pluralId,
metadataIdentificationString);
final List<FieldMetadata> idFields = persistenceMemberLocator
.getIdentifierFields(entity);
if (idFields.size() != 1) {
// The ID field metadata is either unavailable or not stable yet
return null;
}
final FieldMetadata idField = idFields.get(0);
final String entityName = StringUtils.defaultIfEmpty(
jpaEntityAnnotationValues.getEntityName(),
entity.getSimpleTypeName());
boolean isGaeEnabled = false;
final String moduleName = path.getModule();
if (projectOperations.isProjectAvailable(moduleName)) {
// If the project itself changes, we want a chance to refresh this
// item
metadataDependencyRegistry.registerDependency(
ProjectMetadata.getProjectIdentifier(moduleName),