MessageEndpoint endpoint = null;
try {
endpoint = jobHandlerActivation.getMessageEndpointFactory().createEndpoint(null);
try {
endpoint.beforeDelivery(method);
} catch (NoSuchMethodException e) {
log.log(Level.WARNING, "NoSuchMethodException while invoking beforeDelivery() on MessageEndpoint '"+endpoint+"'", e);
} catch (ResourceException e) {
log.log(Level.WARNING, "ResourceException while invoking beforeDelivery() on MessageEndpoint '"+endpoint+"'", e);
}