public static boolean isValidDataSource(String name) {
    Object dataSource = dataSourceMap.get(name);

    return dataSource == null || (dataSource instanceof DataSource
        && !(dataSource instanceof GemFireTransactionDataSource));
  }
Binds a single Datasource to the existing JNDI tree. The JNDI tree may be The Datasource
properties are contained in the map. The Datasource implementation class is populated based on
properties in the map.

@param map contains Datasource configuration properties.
geode-core/src/main/java/org/apache/geode/internal/jndi/JNDIInvoker.java