Opencontext, opensession, invokecommand done.
Allocate memory remain