private void cleanUp() throws Exception { config.unregisterAETitle("DCM4CHEE"); config.unregisterAETitle("DCM4CHEE_ADMIN"); for (String aet : OTHER_AES) config.unregisterAETitle(aet); try { config.removeDevice("dcm4chee-arc"); } catch (ConfigurationNotFoundException e) { } try { config.removeDevice("hl7rcv"); } catch (ConfigurationNotFoundException e) { } for (String name : OTHER_DEVICES) try { config.removeDevice(name); } catch (ConfigurationNotFoundException e) { } }