public SqlSessionFactory getSqlSessionFactoryProject() {

    if (mSqlSessionFactoryProject == null) {
      mSqlSessionFactoryProject =
          buildSqlSessionFactory(getDBURL(ContextManager.getInstance().getIdProject()));
    }

    return mSqlSessionFactoryProject;
  }
  private static String getDBURL(String pStrDBName) {

    ContextManager lContextManager = ContextManager.getInstance();
    StringBuilder lStringBuilder = new StringBuilder();
    lStringBuilder.append("jdbc:h2:file:");

    lStringBuilder.append(ContextManager.getPathSeparator());
    lStringBuilder.append(lContextManager.getDbDirectoryPath());

    if (pStrDBName.equalsIgnoreCase(BIBISCO_DB_URL)) {
      lStringBuilder.append("bibisco");
    } else {
      lStringBuilder.append(pStrDBName);
      lStringBuilder.append(ContextManager.getPathSeparator());
      lStringBuilder.append(pStrDBName);
    }

    return lStringBuilder.toString();
  }