public static void updateInternal(
      DeploymentConfiguration source,
      com.tasktop.c2c.server.internal.deployment.domain.DeploymentConfiguration target) {
    target.setApiToken(source.getApiToken());
    target.setApiBaseUrl(source.getApiBaseUrl());
    target.setName(source.getName());
    target.setUsername(source.getUsername());

    target.setBuildJobName(source.getBuildJobName());
    target.setBuildJobNumber(source.getBuildJobNumber());
    target.setDeploymentType(source.getDeploymentType());
    target.setBuildArtifactPath(source.getBuildArtifactPath());
    target.setDeployUnstableBuilds(source.isDeployUnstableBuilds());
    target.setLastDeploymentDate(source.getLastDeploymentDate());
  }
  public static DeploymentConfiguration convertToPublic(
      com.tasktop.c2c.server.internal.deployment.domain.DeploymentConfiguration source) {
    DeploymentConfiguration result = new DeploymentConfiguration();
    result.setId(source.getId());
    result.setApiToken(source.getApiToken());
    result.setApiBaseUrl(source.getApiBaseUrl());
    result.setName(source.getName());
    result.setUsername(source.getUsername());

    result.setDeploymentType(source.getDeploymentType());
    result.setBuildJobName(source.getBuildJobName());
    result.setBuildJobNumber(source.getBuildJobNumber());
    result.setBuildArtifactPath(source.getBuildArtifactPath());
    result.setDeployUnstableBuilds(source.isDeployUnstableBuilds());
    result.setLastDeploymentDate(source.getLastDeploymentDate());
    // TODO: result.setDescription(description)

    // TODO -- other fields
    return result;
  }