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