public String getDocDefUid() { try { return Document.getDocDefUid(getResource()); } catch (MissingAttributeException e) { return null; } }