}
String path = param.substring(0, pos1);
filename = CmsResource.getName(path);
String foldername = CmsResource.getFolderPath(path);
CmsResource res = cms.readResource(path);
I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res.getTypeId());
createParam = foldername.concat(filename.replaceFirst("[0-9]{4}", "\\${number}")).concat("|").concat(type.getTypeName());
} else {
createParam = param;
}
filename = getCreateInFolder(cms, createParam);
return filename;