setLanguage(lang);
DocumentRef docRef = getDocumentRef(ref);
CoreSession session = ctx.getCoreSession();
DocumentModel currentDoc = session.getDocument(docRef);
DocumentType coreType = TypeService.getSchemaManager().getDocumentType(
docTypeId);
return getView("create_document_form").arg("currentDoc", currentDoc).arg(
"docType", getTypeService().getType(docTypeId)).arg("coreType",
coreType);