if (pathAnnotation != null) {
resourcePath = pathAnnotation.value();
} else {
ResourcePath resourcePathAnnotation = element.getAnnotation(ResourcePath.class);
if (resourcePathAnnotation != null) {
resourcePath = resourcePathAnnotation.path();
if (resourcePath.isEmpty()) {
resourcePath = null;
}
}