if( availService.isAvailabilityEnabled() ){
String storePoolName = availService.getStorePoolName();
databaseName = availService.getHaStoreName();
if( Resources.JDBC_RESOURCE.equals(ResourceHelper.getResourceType(configContext, storePoolName))){
ConfigBean resource = ResourceHelper.findResource(configContext,storePoolName);
if(resource instanceof JdbcResource){
JdbcResource jdbcResource = (JdbcResource)resource ;
String poolName = jdbcResource.getPoolName();
if( Resources.JDBC_CONNECTION_POOL.equals(ResourceHelper.getResourceType(configContext, poolName))){
ConfigBean conPoolResource = ResourceHelper.findResource(configContext, poolName);
if(conPoolResource instanceof JdbcConnectionPool){
ElementProperty passwordProperty = ((JdbcConnectionPool)conPoolResource).getElementPropertyByName("Password");
adminPassword = passwordProperty.getValue();
}