* Returns the given named module
*/
public TaskDescription getTaskDescription(String taskId) {
//try to find cached description:
if (cacheInfo) {
TaskDescription description = (TaskDescription)taskDescriptions.get(taskId);
if (description != null)
return description;
}
//obtain description from service:
try {
String xml = service.getTaskDescription(taskId);
Document doc = buildXML(xml);
TaskDescription description = serializers.getTaskDescriptionSerializer()
.readDescription(doc.getRootElement());
if (cacheInfo)
taskDescriptions.put(taskId, description);