// Implementation methods // ------------------------------------------------------------------------- protected ComplexDataObject unmarshalDataObject(Exchange exchange) throws InvalidPayloadException, IOException { // lets try use the Sink to unmarshall it Transform transformer = getTransform(); Element input = transformer.getInput(0); C24IOSource source = new C24IOSource(input); return source.parseDataObject(exchange); }
protected Object transform(Object[][] objects) throws ValidationException { Transform transformer = getTransform(); Object[][] answer = transformer.transform(objects); return answer[0][0]; }