if (formBackingTypePersistenceMetadata == null) {
return null;
}
final ClassOrInterfaceTypeDetails formBackingTypeDetails = typeLocationService
.getTypeDetails(formBackingType);
final LogicalPath formBackingTypePath = PhysicalTypeIdentifier
.getPath(formBackingTypeDetails.getDeclaredByMetadataId());
metadataDependencyRegistry.registerDependency(PhysicalTypeIdentifier
.createIdentifier(formBackingType, formBackingTypePath),
JspMetadata.createIdentifier(formBackingType,
formBackingTypePath));
final LogicalPath path = JspMetadata.getPath(jspMetadataId);
// Install web artifacts only if Spring MVC config is missing
// TODO: Remove this call when 'controller' commands are gone
final PathResolver pathResolver = projectOperations.getPathResolver();
final LogicalPath webappPath = LogicalPath.getInstance(
Path.SRC_MAIN_WEBAPP, path.getModule());
if (!fileManager.exists(pathResolver.getIdentifier(webappPath,
WEB_INF_VIEWS))) {
jspOperations.installCommonViewArtefacts(path.getModule());