The call to _config.getMessageComposer() in the invoke() method should be removed. The null check can happen against the member _messageComposer field and the check for unwrapped should probably be put in a member field on the class. Concurrent access to the underlying DOM config model should be synchronized, but in this case the synchronization (and associated expense) can be avoided.
https://github.com/jboss-switchyard/components/blob/master/soap/src/main/java/org/switchyard/component/soap/InboundHandler.java#L210
|