JavaCommandFactory should be thread safe now