You can then start an instance with default settings by calling the bootstrap()
method from the PayaraMicro class. This initialization will throw a
BootstrapException exception, so you will need to surround it with a try-catch,
or have the parent method throw the exception.

To start an instance with non-default settings (configuration changes or deploying
applications upon startup), you have to call the getInstance() method before
using bootstrap(). More details on this can be found in the
Configuring an Instance Programmatically
section. The use of the getInstance() method does not exclude you from using
the default settings however; calling the bootstrap() method on its own (as
shown in the example above) is functionally equivalent to calling the
bootstrap() method directly after the getInstance() method, such as in the
example below:

The bootStrap() method returns a PayaraMicroRuntime object instance, which
is comes with various methods that afford you control over the instance and its
cluster after you have bootstrapped it. To take advantage of this, you have to
initialize a PayaraMicroRuntime object from the bootStrap method, like so: