final ResourceKey resourceKey = createKey(resourceManager, contextKey);
final Resource resource = resourceManager.create(resourceKey, contextKey, Document.class);
final Document document = (Document) resource.getResource();
final Node node = XMLHandler.getSubNode(document, TransMeta.XML_TAG);
final TransMeta meta = new TransMeta();
meta.loadXML(node, repository, true, null, null);
final String filename = computeFullFilename(resourceKey);
if (filename != null)
{
logger.debug("Computed Transformation Location: " + filename);
meta.setFilename(filename);