startOpenmrsThread.start(); startOpenmrsThread.join(); if (startOpenmrsThread.getExceptionThrown() != null) { throw new ModuleException("Unable to start OpenMRS. Error thrown was: " + startOpenmrsThread.getExceptionThrown().getMessage(), startOpenmrsThread.getExceptionThrown());
thread.start(); return thread;
thread.start(); return thread;