Fix name of machine mutex in installJava() method and update to use DynamicTasks
fix error where apidoc breaks due to error in UsageApi