return null;
}
final JavaType javaType = new JavaType(
javaPackage.getFullyQualifiedPackageName() + "."
+ simpleTypeName);
final Pom module = projectOperations
.getModuleForFileIdentifier(fileCanonicalPath);
Validate.notNull(module, "The module for the file '"
+ fileCanonicalPath + "' could not be located");
typeCache.cacheTypeAgainstModule(module, javaType);
String reducedPath = fileCanonicalPath.replace(
javaType.getRelativeFileName(), "");
reducedPath = StringUtils.stripEnd(reducedPath, File.separator);
for (final PhysicalPath physicalPath : module.getPhysicalPaths()) {
if (physicalPath.getLocationPath().startsWith(reducedPath)) {
final LogicalPath path = physicalPath.getLogicalPath();
physicalTypeIdentifier = MetadataIdentificationUtils.create(
PhysicalTypeIdentifier.class.getName(), path.getName()
+ "?" + javaType.getFullyQualifiedTypeName());