public class XsltImportByName {
private static final Class CLASS_NAME = XsltImportByName.class;
public static String resolveByName(String input) {
ResourceManager resourceManager = UIMAFramework.newDefaultResourceManager();
Import theImport = new Import_impl();
theImport.setName(input);
try {
return theImport.findAbsoluteUrl(resourceManager).toExternalForm();
} catch (InvalidXMLException e) {
if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) {
UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, XsltImportByName.class.getName(),
"resolveByName", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
"UIMAEE_exception__WARNING", e);