code: public static void copyAndResolveMacro(
          CmsObject cms,
          String source,
          String destination,
          Map<String, String> keyValue,
          boolean adjustLinks)
      throws CmsException {
  
          copyAndResolveMacro(cms, source, destination, keyValue, adjustLinks, CmsResource.COPY_AS_NEW);
      }
docs: Copies resources, adjust internal links (if adjustLinks==true) and resolves macros (if keyValue map is set).<p>
  
  @param cms CmsObject
  @param source path
  @param destination path
  @param keyValue map to be used for macro resolver
  @param adjustLinks boolean, true means internal links get adjusted.
  @throws CmsException exception