private void enhance() throws Exception {
Properties props = getProperties(new String[]{
"openjpa.DetachState", "DetachedStateField=true",
});
OpenJPAConfiguration conf = new OpenJPAConfigurationImpl(true, false);
conf.fromProperties(props);
Options opts = new Options();
opts.put("jdo", "true");
PCEnhancer.run(conf, new String[]{
"org.apache.openjpa.persistence.kernel.noenhance.DetachSMPC" }, opts);