title: How to break inside if condition in java
body: <p>i Have below method . which i am calling an boolean method inside it.if that boolean method is true then exit from the block else continue with else block. Below is what i tried. but failed to break the method.   </p>
  
  <pre><code>public IStatus validate() throws ExecutionValidationException {
      ConfigurationHandler handler = new ConfigurationHandler(getExecutionParameters());
      if (handler.isModelValidationEnabled()){
        //how to handle here and exit here. i need to continue the application
      } else
          this.loggerStorage.getLogger().info(VALIDATION_DM_START);
      try {
          return getDataModel().validateModel();
      } finally {
          this.loggerStorage.getLogger().info(VALIDATION_DM_FINISHED);
      }
  }
  </code></pre>