}
final String typeDirectory = FileUtils
.getFirstDirectory(fileCanonicalPath);
final String simpleTypeName = StringUtils.replace(fileCanonicalPath,
typeDirectory + File.separator, "", 1).replace(".java", "");
final JavaPackage javaPackage = typeResolutionService
.getPackage(fileCanonicalPath);
if (javaPackage == null) {
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");