ConfigurableDataResourceSpecifier_impl cspec = new ConfigurableDataResourceSpecifier_impl();
cspec.setUrl("jdbc:db2:MyDatabase");
ResourceMetaData md = new ResourceMetaData_impl();
cspec.setMetaData(md);
md.setName("foo");
ConfigurationParameterDeclarations decls = new ConfigurationParameterDeclarations_impl();
ConfigurationParameter param = new ConfigurationParameter_impl();
param.setName("param");
param.setType("String");
decls.addConfigurationParameter(param);
md.setConfigurationParameterDeclarations(decls);
// initialize a DataResource
ConfigurableDataResource_impl cdr = new ConfigurableDataResource_impl();
cdr.initialize(cspec, Collections.EMPTY_MAP);