Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
ProcessToolRegistry registry = (ProcessToolRegistry) getPortletConfig()
.getPortletContext().getAttribute(ProcessToolRegistry.class.getName());
registry.withProcessToolContext(new ProcessToolContextCallback() {
@Override
public void withContext(ProcessToolContext ctx) {
ProcessToolContext.Util.setThreadProcessToolContext(ctx);
try {
try {