private ConfiguredDataSourceProperties createDataSourceProperties(Map configMap) {
    ConfiguredDataSourceProperties configs = new ConfiguredDataSourceProperties();
    for (final Object o : configMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      String name = (String) entry.getKey();
      final Object obj = entry.getValue();
      if (name.equals("connection-url")) {
        configs.setURL((String) obj);
      } else if (name.equals("user-name")) {
        configs.setUser((String) obj);
      } else if (name.equals("password")) {
        configs.setPassword(PasswordUtil.decrypt((String) obj));
      } else if (name.equals("jdbc-driver-class")) {
        configs.setJDBCDriver((String) obj);
      } else if (name.equals("init-pool-size")) {
        configs.setInitialPoolSize(Integer.parseInt((String) (obj == null
            ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_INIT_LIMIT) : obj)));
      } else if (name.equals("max-pool-size")) {
        configs.setMaxPoolSize(Integer.parseInt((String) (obj == null
            ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_MAX_LIMIT) : obj)));
      } else if (name.equals("idle-timeout-seconds")) {
        configs.setConnectionExpirationTime(Integer.parseInt((String) (obj == null
            ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_EXPIRATION_TIME) : obj)));
      } else if (name.equals("blocking-timeout-seconds")) {
        configs.setConnectionTimeOut(Integer.parseInt((String) (obj == null
            ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_ACTIVE_TIME_OUT) : obj)));
      } else if (name.equals("login-timeout-seconds")) {
        configs.setLoginTimeOut(Integer.parseInt((String) (obj == null
            ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_CLIENT_TIME_OUT) : obj)));
      } else if (name.equals("conn-pooled-datasource-class")) {
        configs.setConnectionPoolDSClass((String) obj);
      } else if (name.equals("xa-datasource-class")) {
        configs.setXADSClass((String) obj);
      } else if (name.equals("managed-conn-factory-class")) {
        configs.setMCFClass((String) obj);
      } else if (name.equals("transaction-type")) {
        configs.setTransactionType((String) obj);
      }
    }

    /*
     * Test hook for replacing URL
     */
    if (TEST_CONNECTION_URL != null) {
      configs.setURL(TEST_CONNECTION_URL);
    }
    return configs;
  }
Creates ConfiguredDataSourceProperties from map.

@param configMap a map containing configurations required for datasource.
geode-core/src/main/java/org/apache/geode/internal/datasource/DataSourceFactory.java