protected void createProjectSettings(IProject project, String containerPath, String consolePath)
      throws BackingStoreException {

    IEclipsePreferences preferences = InstanceScope.INSTANCE.getNode(SymfonyCorePlugin.ID);
    String executable = preferences.get(Keys.PHP_EXECUTABLE, null);
    IEclipsePreferences node = new ProjectScope(project).getNode(SymfonyCorePlugin.ID);
    if (executable != null) {
      node.put(Keys.PHP_EXECUTABLE, executable);
      Logger.log(Logger.WARNING, "Executable not found!");
    }
    node.put(Keys.CONSOLE, consolePath);
    node.put(Keys.USE_PROJECT_PHAR, Boolean.FALSE.toString());
    node.put(Keys.DUMPED_CONTAINER, containerPath);
    node.flush();
  }
  @Override
  public String resolve(IScriptFolder container) {

    if (container == null) {
      Logger.log(Logger.WARNING, "Unable to resolve namespace, no container available");
      return null;
    }

    // Try composer first - Symfony 2.1
    try {
      IPath path = ModelAccess.getInstance().resolve(container.getResource());
      if (path != null) {
        return path.toString().replace("/", "\\");
      }
    } catch (Exception e) {
      Logger.logException(e);
    }

    // fallback to Symfony 2.0
    return SymfonyModelAccess.getDefault()
        .findNameSpace(container.getScriptProject(), container.getPath());
  }