public CaptureType create(AtrilSession oSes, String sMimeType, boolean bMultiPage, boolean bMultiSheet,
boolean bSign, boolean bServerSign, String sName, String sDescripcion) {
CaptureType oCpt = new CaptureType();
Dms oDms = oSes.getDms();
Document oDoc = oDms.newDocument(oDms.getDocumentType(oCpt.getTypeName()), getDocument());
oDoc.attribute("name").set(sName);
oDoc.attribute("description").set(sDescripcion);
oDoc.attribute("MimeType").set(sMimeType);
oDoc.attribute("MultiPageItem").set(bMultiPage ? 1 : 0);
oDoc.attribute("MultiSheetDocument").set(bMultiSheet ? 1 : 0);
oDoc.attribute("Sign").set(bSign ? 1 : 0);
oDoc.attribute("SignInClient").set(bSign ? 1 : 0);
oDoc.attribute("SignInServer").set(bServerSign ? 1 : 0);
oDoc.attribute("IsPDFA").set(0);
oDoc.attribute("XMPMetadataStructure").set("");
oDoc.attribute("bitsDepth").set(0);
oDoc.save("");
oCpt.setDocument(oDoc);
oDoc = oDms.newDocument(oDms.getDocumentType("Fields"), oCpt.getDocument());
oDoc.save("");
return oCpt;
}