code: protected Options getOptions() throws MojoExecutionException {
          File persistence = ensurePersistenceXml();
  
          Options opts = new Options();
          if (toolProperties != null) {
              opts.putAll(toolProperties);
          }
          opts.put(OPTION_PROPERTIES_FILE, persistence.getAbsolutePath());
  
          if (connectionDriverName != null) {
              opts.put(OPTION_CONNECTION_DRIVER_NAME, connectionDriverName);
          }
  
          if (connectionProperties != null) {
              opts.put(OPTION_CONNECTION_PROPERTIES, connectionProperties);
          }
  
          // put the standard options into the list also
          opts.put(OPTION_ADD_DEFAULT_CONSTRUCTOR, Boolean.toString(addDefaultConstructor));
          opts.put(OPTION_ENFORCE_PROPERTY_RESTRICTION, Boolean.toString(enforcePropertyRestrictions));
          opts.put(OPTION_USE_TEMP_CLASSLOADER, Boolean.toString(tmpClassLoader));
  
          return opts;
      }
docs: Get the options for the OpenJPA enhancer tool.
  
  @return populated Options