static Map<String, Map<String, Object>> getBasicDataSourceProperties() {
   if (!TOMCAT_BASIC_DATASOURCES_PROPERTIES.isEmpty()) {
     return TOMCAT_BASIC_DATASOURCES_PROPERTIES.getDataSourcesProperties();
   } else if (!DBCP_BASIC_DATASOURCES_PROPERTIES.isEmpty()) {
     return DBCP_BASIC_DATASOURCES_PROPERTIES.getDataSourcesProperties();
   } else if (!TOMCAT_JDBC_DATASOURCES_PROPERTIES.isEmpty()) {
     return TOMCAT_JDBC_DATASOURCES_PROPERTIES.getDataSourcesProperties();
   }
   return Collections.emptyMap();
 }
 static int getMaxConnectionCount() {
   if (!TOMCAT_BASIC_DATASOURCES_PROPERTIES.isEmpty()) {
     return TOMCAT_BASIC_DATASOURCES_PROPERTIES.getMaxActive();
   } else if (!DBCP_BASIC_DATASOURCES_PROPERTIES.isEmpty()) {
     return DBCP_BASIC_DATASOURCES_PROPERTIES.getMaxActive();
   } else if (!TOMCAT_JDBC_DATASOURCES_PROPERTIES.isEmpty()) {
     return TOMCAT_JDBC_DATASOURCES_PROPERTIES.getMaxActive();
   }
   return -1;
 }