Minor fixes to Java Installation logic.

Improvement in topology handling when creating new volumes.