code: public static String getDataSourceIdentifier(WSJdbcWrapper jdbcWrapper) {
          DSConfig config = jdbcWrapper.dsConfig.get();
          return config.jndiName == null ? config.id : config.jndiName;
      }
docs: Utility method to obtain the unique identifier of the data source associated with a JDBC wrapper.
  
  @param jdbcWrapper proxy for a JDBC resource.
  @return JNDI name of the data source if it has one, otherwise the config.displayId of the data source.