code: private List<CmsResource> getDecorationMapFiles(CmsObject cms) throws CmsException {
  
          List<CmsResource> files = new ArrayList<CmsResource>();
  
          // calcualte the basename for the decoration map files
          // the basename is the filename without the fileextension and any "_locale" postfixes
          // e.g. decoration_en.csv will generate "decoration" as basename
          StringBuffer baseFilename = new StringBuffer();
          baseFilename.append(CmsResource.getParentFolder(m_configurationFile));
          String filename = cms.readResource(m_configurationFile).getName();
          // get rid of the fileextension if there is one
          if (filename.lastIndexOf(".") > -1) {
              filename = filename.substring(0, filename.lastIndexOf("."));
          }
          // extract the basename
          if (filename.lastIndexOf("_") > -1) {
              filename = filename.substring(0, filename.lastIndexOf("_"));
          }
          baseFilename.append(filename);
          String basename = baseFilename.toString();
  
          // get all config files which belong to this basename
          int plainId;
          try {
              plainId = OpenCms.getResourceManager().getResourceType(
                  CmsResourceTypePlain.getStaticTypeName()).getTypeId();
          } catch (CmsLoaderException e) {
              // this should really never happen
              plainId = CmsResourceTypePlain.getStaticTypeId();
          }
          List<CmsResource> resources = cms.readResources(
              CmsResource.getParentFolder(m_configurationFile),
              CmsResourceFilter.DEFAULT);
          Iterator<CmsResource> i = resources.iterator();
          while (i.hasNext()) {
              CmsResource res = i.next();
              if (cms.getSitePath(res).startsWith(basename) && (res.getTypeId() == plainId)) {
                  files.add(res);
              }
          }
  
          return files;
      }
docs: Gets the list of all decoartion map files that match to the current basename.<p>
  
  @param cms the CmsObject
  @return list of CmsResources of the decoration map files
  @throws CmsException if something goes wrong.