final Execution exectution = processInstance.findActiveExecutionIn("subprocess");
String pid = processEngineFactory.getProcessEngine().execute(
new Command<String>(){
public String execute(Environment env){
return ((ExecutionImpl)execution).getSubProcessInstance().getId();
}
}
);
fails with LazyInitializationException - i.e. the same exception as before