@Override
  public String getProductExecutable(InternalManagedEntity entity, String executable) {
    String productDirectory = entity.getEntityConfig().getProductDirectory();
    String path = null;
    File productDir = new File(productDirectory);
    {
      path = productDir.getPath();
      if (!endsWithSeparator(path)) {
        path += File.separator;
      }
      path += "bin" + File.separator;
    }

    String bat = "";
    if (pathIsWindows(path)) {
      bat = ".bat";
    }
    return getOSPath(path) + executable + bat;
  }
Returns the full path to the executable in <code>$GEMFIRE/bin</code> taking into account the
{@linkplain ManagedEntityConfig#getProductDirectory product directory} and the platform's file
separator.

<P>

Note: we should probably do a better job of determine whether or not the machine on which the
entity runs is Windows or Linux.

@param executable The name of the executable that resides in <code>$GEMFIRE/bin</code>.
geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java