public void parse(Element e, Namespace nsYawl) throws ResourceParseException { parseInitiator(e, nsYawl); Element eAllocator = e.getChild("allocator", nsYawl); if (eAllocator != null) { String allocatorClassName = eAllocator.getChildText("name", nsYawl); if (allocatorClassName != null) { _allocator = AllocatorFactory.getInstance(allocatorClassName); if (_allocator != null) _allocator.setParams(parseParams(eAllocator, nsYawl)); else throw new ResourceParseException("Unknown allocator name: " + allocatorClassName); } else throw new ResourceParseException("Missing allocator element: name"); } }