[Java container] Refactored ProcessManagerController to improve its testability.
[Java container] Added ProcessManagerController tests.
[Java container] Added Javadoc.
[Java container] Added extra logging.