Assert.hasText(categoryCode);
String resourceLocation = String.format(RESOURCE_PATTERN, categoryCode);
Resource resource = resourceLoader.getResource(resourceLocation);
//
if(resource.exists()==false) {
throw new ServiceException(ServiceExceptionCode.PROJECT_CATEGORY_UNSUPPORTED,
String.format("Unsupported project category %s", categoryCode));
}
//
return parse(resource);
}