public static void createDocumentFromSource(CallContext context, CmisService service, String repositoryId,
HttpServletRequest request, HttpServletResponse response) throws Exception {
// get parameters
String folderId = (String) context.get(CONTEXT_OBJECT_ID);
String sourceId = getStringParameter(request, PARAM_SOURCE_ID);
VersioningState versioningState = getEnumParameter(request, PARAM_VERSIONIG_STATE, VersioningState.class);
String transaction = getStringParameter(request, PARAM_TRANSACTION);
// execute
ControlParser cp = new ControlParser(request);
TypeCache typeCache = new TypeCacheImpl(repositoryId, service);