code: public String getAsXML(String targetPid) {
          ReadableCharArrayWriter out = new ReadableCharArrayWriter(512);
          try {
              getAsXML(targetPid, out);
          } catch (IOException wonthappen) {
              throw new RuntimeException(wonthappen);
          }
          return out.getString();
      }
docs: Ensure the dc:identifiers include the pid of the target object
  @param targetPid
  @return String xml