@Override public boolean readFrom(Object path) { if (fileResolver == null) { return false; } File descriptorFile = fileResolver.resolve(path); if (descriptorFile == null || !descriptorFile.exists()) { return false; } try { FileReader reader = new FileReader(descriptorFile); readFrom(reader); return true; } catch (IOException e) { throw new UncheckedIOException(e); } }
@Override public DefaultDeploymentDescriptor writeTo(Object path) { transformer.transform(toXmlNode(), fileResolver.resolve(path)); return this; }