code: public boolean isReady() throws MojoExecutionException {
          try {
              return (Boolean) this.connection.getAttribute(this.objectName, "Ready");
          } catch (InstanceNotFoundException ex) {
              return false; // Instance not available yet
          } catch (AttributeNotFoundException ex) {
              throw new IllegalStateException("Unexpected: attribute 'Ready' not available",
                      ex);
          } catch (ReflectionException ex) {
              throw new MojoExecutionException("Failed to retrieve Ready attribute",
                      ex.getCause());
          } catch (MBeanException ex) {
              throw new MojoExecutionException(ex.getMessage(), ex);
          } catch (IOException ex) {
              throw new MojoExecutionException(ex.getMessage(), ex);
          }
      }
docs: Check if the spring application managed by this instance is ready. Returns
  {@code false} if the mbean is not yet deployed so this method should be repeatedly
  called until a timeout is reached.
  
  @return {@code true} if the application is ready to service requests
  @throws MojoExecutionException if the JMX service could not be contacted