protected void initValueRequirementNames(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
String valueRequirementNameClasses = configuration.get(WebValueRequirementNamesResource.VALUE_REQUIREMENT_NAME_CLASSES);
configuration.remove(WebValueRequirementNamesResource.VALUE_REQUIREMENT_NAME_CLASSES);
if (valueRequirementNameClasses == null) {
repo.getRestComponents().publishResource(new WebValueRequirementNamesResource());
} else if (valueRequirementNameClasses.contains(",")) {
repo.getRestComponents().publishResource(
new WebValueRequirementNamesResource(valueRequirementNameClasses.split(",")));
} else {
repo.getRestComponents().publishResource(new WebValueRequirementNamesResource(new String[] {valueRequirementNameClasses}));
}
}