String casProcType = ((URISpecifier) resourceSpecifier).getResourceType();
isCasConsumer = URISpecifier.RESOURCE_TYPE_CAS_CONSUMER.equals(casProcType);
}
} else if (Constants.DEPLOYMENT_LOCAL.equals(casProcessorType.getDeployment())) {
// parse as a Vinci service descriptor
Descriptor deployDesc = new Descriptor(descriptorPath);
// from there get the UIMA component descriptor, and check its path
String componentDescPath = deployDesc.getResourceSpecifierPath();
ResourceSpecifier resourceSpecifier = UIMAFramework.getXMLParser().parseResourceSpecifier(
new XMLInputSource(componentDescPath));
isCasConsumer = (resourceSpecifier instanceof CasConsumerDescription);
}
}