private ResourceProfile toProfile(Map<String, String> map) {
return toProfile(map, Collections.<String, String>emptyMap());
}
private ResourceProfile toProfile(Map<String, String> map, Map<String, String> params) {
return new ResourceProfile(
"jdbc",
JdbcResourceProvider.class,
new ProfileContext(getClass().getClassLoader(), new ParameterList(params)),
map);
}