private void insertComposite(
RequestContext context, Graph graph, RequestNode node, String impl)
throws TransformationException
{
DISPELGraphBuilder builder =
new DISPELGraphBuilder(mAdmireRegistry, mDispelOptimiser);
DISPELCompiler compiler = new DISPELCompiler();
compiler.setRequestBuilder(builder);
SimpleErrorListener errorListener = new SimpleErrorListener();
compiler.addErrorListener(errorListener);
compiler.parse(impl);
if (errorListener.haveErrors())
{
throw new TransformationException(
"Implementation of processing element '" +
node.getName() + "' cannot be parsed.");
}
RegisteredObject registeredObject = builder.getRegistered().get(node.getName());
if (!(registeredObject.getObject() instanceof ProcessingElementType))
{
throw new TransformationException(
"Cannot handle registered objects of type: " +