class FormattedMetadataDestination implements MessageDrivenDestination {

  @Override
  public String getDestination(AdaptrisMessage msg) throws CoreException {
    String destinationName = defaultIfEmpty(String.format(getDestinationTemplate(), createParams(msg)), null);
    log.debug("Dynamic destination [" + destinationName + "]");
    return destinationName;
  }

  public  FormattedMetadataDestination();

}